mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
FindMatlab: only search registry on windows hosts
From Linux, it fails when cross-compiling
This commit is contained in:
1 parent
f0e82ce9a2
commit
3434c22c29
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user