diff options
author | Brad King <brad.king@kitware.com> | 2016-05-12 14:54:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-12 15:08:40 (GMT) |
commit | bbf8c03b4f04ffcf2bd96b6408e4fa3598b2526f (patch) | |
tree | 30649ce8a445246b4d8f57754bacd3385a09191f /Modules/InstallRequiredSystemLibraries.cmake | |
parent | cb704c08710bdf6a4ca13261a059c277df26214a (diff) | |
download | CMake-bbf8c03b4f04ffcf2bd96b6408e4fa3598b2526f.zip CMake-bbf8c03b4f04ffcf2bd96b6408e4fa3598b2526f.tar.gz CMake-bbf8c03b4f04ffcf2bd96b6408e4fa3598b2526f.tar.bz2 |
InstallRequiredSystemLibraries: Fix ENV{ProgramFiles(x86)} reference
The fix in commit v3.1.0-rc1~544^2~5 (Windows: Avoid () in environment
variable references, 2014-05-02) introduced a set() command in the
middle of an argument list. Move it to before the find_path() call.
Diffstat (limited to 'Modules/InstallRequiredSystemLibraries.cmake')
-rw-r--r-- | Modules/InstallRequiredSystemLibraries.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake index 2ff9aed..89f3d50 100644 --- a/Modules/InstallRequiredSystemLibraries.cmake +++ b/Modules/InstallRequiredSystemLibraries.cmake @@ -171,12 +171,12 @@ if(MSVC) # Find the runtime library redistribution directory. get_filename_component(msvc_install_dir "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\${v}.0;InstallDir]" ABSOLUTE) + set(programfilesx86 "ProgramFiles(x86)") find_path(MSVC${v}_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.CRT PATHS "${msvc_install_dir}/../../VC/redist" "${base_dir}/VC/redist" "$ENV{ProgramFiles}/Microsoft Visual Studio ${v}.0/VC/redist" - set(programfilesx86 "ProgramFiles(x86)") "$ENV{${programfilesx86}}/Microsoft Visual Studio ${v}.0/VC/redist" ) mark_as_advanced(MSVC${v}_REDIST_DIR) |