diff options
author | Brad King <brad.king@kitware.com> | 2017-11-15 14:31:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-15 14:33:56 (GMT) |
commit | 9f1916aaaae830cdaa7dbfea5035f62fbc7920e7 (patch) | |
tree | 3a30519af35f35e3d85245afea8509f22965a294 /Modules | |
parent | e31288582977c10972af9baa3b0e41d758094d21 (diff) | |
download | CMake-9f1916aaaae830cdaa7dbfea5035f62fbc7920e7.zip CMake-9f1916aaaae830cdaa7dbfea5035f62fbc7920e7.tar.gz CMake-9f1916aaaae830cdaa7dbfea5035f62fbc7920e7.tar.bz2 |
FindMatlab: Avoid if() auto-dereference in 64-bit host detection
If the value of `CMAKE_HOST_SYSTEM_PROCESSOR` also happens to be set as
a variable by a project (e.g. `AMD64`), allowing `if()` to
auto-dereference is unlikely to produce a value that matches "64".
Instead let `if()` auto-dereference `CMAKE_HOST_SYSTEM_PROCESSOR`.
Fixes: #17460
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMatlab.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index c79642d..06f7d96 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -356,7 +356,7 @@ function(matlab_extract_all_installed_versions_from_registry win64 matlab_versio endif() - if(${win64} AND ${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "64") + if(${win64} AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "64") set(APPEND_REG "/reg:64") else() set(APPEND_REG "/reg:32") |