mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-18 01:31:04 -05:00
FindMatlab: Do not query host processor for registry view
`matlab_extract_all_installed_versions_from_registry` searched for 32-bit installations on 32-bit Windows even if win64 was set to 'TRUE'. Now, no installation will be found if win64 is set to 'TRUE' on 32-bit Windows, which is also the documented behavior.
This commit is contained in:
@@ -465,7 +465,7 @@ function(matlab_extract_all_installed_versions_from_registry win64 matlab_versio
|
|||||||
message(FATAL_ERROR "[MATLAB] This function can only be called by a Windows host")
|
message(FATAL_ERROR "[MATLAB] This function can only be called by a Windows host")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${win64} AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "64")
|
if(${win64})
|
||||||
set(_view "64")
|
set(_view "64")
|
||||||
else()
|
else()
|
||||||
set(_view "32")
|
set(_view "32")
|
||||||
|
|||||||
Reference in New Issue
Block a user