Explorar el Código

Merge topic 'test-vs-windows-hosts' into release-3.19

dca8800cb5 Tests: Look for Visual Studio only on Windows hosts

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5569
Brad King hace 4 años
padre
commit
22b4bea318
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Tests/CMakeLists.txt

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