mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
Map configuration also for single configuration generators (#10397)
This commit is contained in:
parent
da0a154852
commit
52273558f6
@ -26,22 +26,20 @@ if(VCPKG_TOOLCHAIN)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED CMAKE_CONFIGURATION_TYPES) #Generating with a multi config generator
|
#If CMake does not have a mapping for MinSizeRel and RelWithDebInfo in imported targets
|
||||||
#If CMake does not have a mapping for MinSizeRel and RelWithDebInfo in imported targets
|
#it will map those configuration to the first valid configuration in CMAKE_CONFIGURATION_TYPES or the targets IMPORTED_CONFIGURATIONS.
|
||||||
#it will map those configuration to the first valid configuration in CMAKE_CONFIGURATION_TYPES.
|
#In most cases this is the debug configuration which is wrong.
|
||||||
#By default this is the debug configuration which is wrong.
|
if(NOT DEFINED CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL)
|
||||||
if(NOT DEFINED CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL)
|
|
||||||
set(CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL "MinSizeRel;Release;")
|
set(CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL "MinSizeRel;Release;")
|
||||||
if(VCPKG_VERBOSE)
|
if(VCPKG_VERBOSE)
|
||||||
message(STATUS "VCPKG-Info: CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL set to MinSizeRel;Release;")
|
message(STATUS "VCPKG-Info: CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL set to MinSizeRel;Release;")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(NOT DEFINED CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO)
|
if(NOT DEFINED CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO)
|
||||||
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "RelWithDebInfo;Release;")
|
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "RelWithDebInfo;Release;")
|
||||||
if(VCPKG_VERBOSE)
|
if(VCPKG_VERBOSE)
|
||||||
message(STATUS "VCPKG-Info: CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO set to RelWithDebInfo;Release;")
|
message(STATUS "VCPKG-Info: CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO set to RelWithDebInfo;Release;")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(VCPKG_TARGET_TRIPLET)
|
if(VCPKG_TARGET_TRIPLET)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user