summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorLuca Cappa <lucappa@microsoft.com>2020-01-09 00:50:25 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-09 16:55:12 (GMT)
commit353405daefbe6d6202378214f78cee9219662bb0 (patch)
tree949298b90bb3141286c97ff32d7adcac75137b05 /Source/cmTarget.cxx
parentd020ed99e9ee7449be5816ad52eff4456ae782bf (diff)
downloadCMake-353405daefbe6d6202378214f78cee9219662bb0.zip
CMake-353405daefbe6d6202378214f78cee9219662bb0.tar.gz
CMake-353405daefbe6d6202378214f78cee9219662bb0.tar.bz2
Add support for FOLDER target property to custom targets
Fixes: #18372
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index d2693b8..35051c3 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -358,7 +358,6 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
initProp("CUDA_RESOLVE_DEVICE_SYMBOLS");
initProp("LINK_SEARCH_START_STATIC");
initProp("LINK_SEARCH_END_STATIC");
- initProp("FOLDER");
initProp("Swift_LANGUAGE_VERSION");
initProp("Swift_MODULE_DIRECTORY");
initProp("VS_JUST_MY_CODE_DEBUGGING");
@@ -390,6 +389,8 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
}
if (this->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
+ initProp("FOLDER");
+
if (this->GetGlobalGenerator()->IsXcode()) {
initProp("XCODE_GENERATE_SCHEME");
}