diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-08-19 20:41:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-21 13:17:27 (GMT) |
commit | 3ef0c40962312a97d5a083c79ec563045fe28de3 (patch) | |
tree | 1b6231bd299e24a59ab83e8af875d77a1e287ba3 /Source/cmExtraCodeBlocksGenerator.cxx | |
parent | 8de3a25ec34c4b2d3cd7e519d3c3607e81de34c4 (diff) | |
download | CMake-3ef0c40962312a97d5a083c79ec563045fe28de3.zip CMake-3ef0c40962312a97d5a083c79ec563045fe28de3.tar.gz CMake-3ef0c40962312a97d5a083c79ec563045fe28de3.tar.bz2 |
WIN32_EXECUTABLE: Add support for generator expressions
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 511168b..df68033 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -689,7 +689,8 @@ int cmExtraCodeBlocksGenerator::GetCBTargetType(cmGeneratorTarget* target) { switch (target->GetType()) { case cmStateEnums::EXECUTABLE: - if ((target->GetPropertyAsBool("WIN32_EXECUTABLE")) || + if ((target->IsWin32Executable( + target->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE"))) || (target->GetPropertyAsBool("MACOSX_BUNDLE"))) { return 0; } |