summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-06 12:22:19 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-08-06 12:22:28 (GMT)
commitbed7ee11b7b080e49fbdc107674140eecd4cd5b1 (patch)
tree0bd850d91b922bfefb6bfec657efd30a448a7510 /Modules
parent66be4621dabd86764bb007eabf605408626a7079 (diff)
parent3434c22c290887a47bd70d6315aba8082a77110a (diff)
downloadCMake-bed7ee11b7b080e49fbdc107674140eecd4cd5b1.zip
CMake-bed7ee11b7b080e49fbdc107674140eecd4cd5b1.tar.gz
CMake-bed7ee11b7b080e49fbdc107674140eecd4cd5b1.tar.bz2
Merge topic 'FindMatlab-cross-compile'
3434c22c29 FindMatlab: only search registry on windows hosts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2248
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)