summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-07-27 19:02:35 (GMT)
committerBrad King <brad.king@kitware.com>2006-07-27 19:02:35 (GMT)
commitd3e8ef705ea0e62918cf0c0e34920cc78183df4a (patch)
treea7aa8bb9fb91e5ba0e7630266f2bde0bdcc5932d /Source/cmGlobalXCodeGenerator.cxx
parent7e3310e6e52a43e63fbdabc71a29c559690807a6 (diff)
downloadCMake-d3e8ef705ea0e62918cf0c0e34920cc78183df4a.zip
CMake-d3e8ef705ea0e62918cf0c0e34920cc78183df4a.tar.gz
CMake-d3e8ef705ea0e62918cf0c0e34920cc78183df4a.tar.bz2
BUG: Set GCC_SYMBOLS_PRIVATE_EXTERN and GCC_INLINES_ARE_PRIVATE_EXTERN attributes on all projects to prevent -fvisibility=hidden flags. This is needed to make RTTI work by default.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 29ff85c..d4cc2a7 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1213,10 +1213,6 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
this->CreateString("mh_bundle"));
buildSettings->AddAttribute("GCC_DYNAMIC_NO_PIC",
this->CreateString("NO"));
- buildSettings->AddAttribute("GCC_SYMBOLS_PRIVATE_EXTERN",
- this->CreateString("NO"));
- buildSettings->AddAttribute("GCC_INLINES_ARE_PRIVATE_EXTERN",
- this->CreateString("NO"));
// Add the flags to create an executable.
std::string createFlags =
this->LookupFlags("CMAKE_", lang, "_LINK_FLAGS", "");
@@ -1396,6 +1392,10 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
this->CreateString(optLevel));
buildSettings->AddAttribute("OPTIMIZATION_CFLAGS",
this->CreateString(oflagc.c_str()));
+ buildSettings->AddAttribute("GCC_SYMBOLS_PRIVATE_EXTERN",
+ this->CreateString("NO"));
+ buildSettings->AddAttribute("GCC_INLINES_ARE_PRIVATE_EXTERN",
+ this->CreateString("NO"));
if(lang && strcmp(lang, "CXX") == 0)
{
flags += " ";