Commit dca8800c authored by Brad King's avatar Brad King 💬
Browse files

Tests: Look for Visual Studio only on Windows hosts

Update logic added by commit 6051a49c (Visual Studio: Add Android
support, 2020-06-12, v3.19.0-rc1~619^2) to only look for VS
installations using `cmake_host_system_information` on Windows hosts.
Otherwise the `VS_*_DIR` keys are not available.

Fixes: #21547
parent 6cf88734
Pipeline #203411 passed with stage
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment