summaryrefslogtreecommitdiff
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-04 13:25:34 +0000
committerKitware Robot <kwrobot@kitware.com>2020-12-04 08:25:43 -0500
commit1c06bd1d209811dd8c5e2869b2bfb673d86213ce (patch)
treed1e15308ca5da0e916f24eb3254130b81ccf8fe3 /Tests/CMakeLists.txt
parent26b5a4424a6bfdf47c85dc539184040e0b1f23fe (diff)
parentdca8800cb51eec7bda18fb47d3be76c18ff264c8 (diff)
downloadcmake-1c06bd1d209811dd8c5e2869b2bfb673d86213ce.tar.gz
Merge topic 'test-vs-windows-hosts'
dca8800cb5 Tests: Look for Visual Studio only on Windows hosts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5569
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 6a4a5c5b30..e0be694d6a 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -206,7 +206,7 @@ if(BUILD_TESTING)
set(${reg} 0)
endif()
endforeach()
- if(COMMAND cmake_host_system_information)
+ if(CMAKE_HOST_WIN32 AND COMMAND cmake_host_system_information)
set(info_vs15 "VS_15_DIR")
set(info_vs16 "VS_16_DIR")
set(vs_versions)