mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:49:04 +08:00
Only set GENERATOR_INSTANCE if supprted by generator
This commit is contained in:
parent
b4bc90fdcb
commit
0a720418c4
@ -28,7 +28,9 @@ if(NOT _VCPKG_WINDOWS_TOOLCHAIN)
|
||||
endblock()
|
||||
endif()
|
||||
|
||||
set(CMAKE_GENERATOR_INSTANCE "$ENV{VSINSTALLDIR}")
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
set(CMAKE_GENERATOR_INSTANCE "$ENV{VSINSTALLDIR}")
|
||||
endif()
|
||||
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>$<$<STREQUAL:${VCPKG_CRT_LINKAGE},dynamic>:DLL>" CACHE STRING "")
|
||||
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "")
|
||||
|
Loading…
Reference in New Issue
Block a user