Bläddra i källkod

Merge topic 'FindMatlab-cross-compile'

3434c22c29 FindMatlab: only search registry on windows hosts

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2248
Brad King 7 år sedan
förälder
incheckning
bed7ee11b7
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Modules/FindMatlab.cmake

+ 1 - 1
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)