diff options
author | Craig Scott <craig.scott@crascit.com> | 2017-12-29 20:33:11 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2017-12-29 22:35:56 (GMT) |
commit | 3c413e2a31b4fcb6a99dba04669c6a6517b97832 (patch) | |
tree | 0e3f6f6776b682f43654f948886e34d482441aa2 /Modules/CMakeExpandImportedTargets.cmake | |
parent | c267ea1c3e54626e4ab2283dc7529ed8aa8beac8 (diff) | |
download | CMake-3c413e2a31b4fcb6a99dba04669c6a6517b97832.zip CMake-3c413e2a31b4fcb6a99dba04669c6a6517b97832.tar.gz CMake-3c413e2a31b4fcb6a99dba04669c6a6517b97832.tar.bz2 |
GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Modules
Diffstat (limited to 'Modules/CMakeExpandImportedTargets.cmake')
-rw-r--r-- | Modules/CMakeExpandImportedTargets.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeExpandImportedTargets.cmake b/Modules/CMakeExpandImportedTargets.cmake index ad065f0..21a3065 100644 --- a/Modules/CMakeExpandImportedTargets.cmake +++ b/Modules/CMakeExpandImportedTargets.cmake @@ -50,6 +50,10 @@ function(CMAKE_EXPAND_IMPORTED_TARGETS _RESULT ) endif() if(NOT CEIT_CONFIGURATION) + # Would be better to test GENERATOR_IS_MULTI_CONFIG global property, + # but the documented behavior specifically says we check + # CMAKE_CONFIGURATION_TYPES and fall back to CMAKE_BUILD_TYPE if no + # config types are defined. if(CMAKE_CONFIGURATION_TYPES) list(GET CMAKE_CONFIGURATION_TYPES 0 CEIT_CONFIGURATION) else() |