summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJulien Schueller <schueller@phimeca.com>2018-08-01 11:40:25 (GMT)
committerJulien Schueller <schueller@phimeca.com>2018-08-01 11:40:25 (GMT)
commit3434c22c290887a47bd70d6315aba8082a77110a (patch)
treebb1588c8891593907f000933d69b3008a32f21d0 /Modules
parentf0e82ce9a2f50e7ce0b9b95dcf32e47ce9a08369 (diff)
downloadCMake-3434c22c290887a47bd70d6315aba8082a77110a.zip
CMake-3434c22c290887a47bd70d6315aba8082a77110a.tar.gz
CMake-3434c22c290887a47bd70d6315aba8082a77110a.tar.bz2
FindMatlab: only search registry on windows hosts
From Linux, it fails when cross-compiling
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMatlab.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 54e62db..ddf22d1 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -1369,7 +1369,7 @@ else()
# if the user does not specify the possible installation root, we look for
# one installation using the appropriate heuristics.
# There is apparently no standard way on Linux.
- if(WIN32)
+ if(CMAKE_HOST_WIN32)
_Matlab_find_instances_win32(_matlab_possible_roots_win32)
list(APPEND _matlab_possible_roots ${_matlab_possible_roots_win32})
elseif(APPLE)