aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/nsis/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/nsis/CMakeLists.txt')
-rw-r--r--packaging/nsis/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/nsis/CMakeLists.txt b/packaging/nsis/CMakeLists.txt
index a43a3601d6..904cf29a74 100644
--- a/packaging/nsis/CMakeLists.txt
+++ b/packaging/nsis/CMakeLists.txt
@@ -120,13 +120,13 @@ elseif(MSVC_VERSION GREATER_EQUAL 1800)
endif()
find_program(VCREDIST_EXE "${_vcredist_name}"
- PATHS "${_PROJECT_LIB_DIR}" ENV "VCINSTALLDIR"
+ PATHS "${_PROJECT_LIB_DIR}" $ENV{VCToolsRedistDir} $ENV{VCINSTALLDIR}
PATH_SUFFIXES ${_ws_vcredist_subdir} ${_ms_vcredist_subdir}
NO_DEFAULT_PATH
)
if(VCREDIST_EXE)
file(TO_NATIVE_PATH "${VCREDIST_EXE}" VCREDIST_EXE)
- message(STATUS "Using ${VCREDIST_EXE} for the installer")
+ message(STATUS "Using ${VCREDIST_EXE} for the NSIS installer.")
endif()
# Ideally we would generate this at compile time using a separate cmake