diff options
author | Julien Schueller <schueller@phimeca.com> | 2018-08-01 11:40:25 (GMT) |
---|---|---|
committer | Julien Schueller <schueller@phimeca.com> | 2018-08-01 11:40:25 (GMT) |
commit | 3434c22c290887a47bd70d6315aba8082a77110a (patch) | |
tree | bb1588c8891593907f000933d69b3008a32f21d0 /Modules | |
parent | f0e82ce9a2f50e7ce0b9b95dcf32e47ce9a08369 (diff) | |
download | CMake-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.cmake | 2 |
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) |