summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-01-31 15:09:06 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-02-01 08:55:24 (GMT)
commitefdcebddbdc47e91254461da40cec2be869a0940 (patch)
tree7af9af19107e401314c32e71ee28f413ef700c49 /Source/cmLocalGenerator.cxx
parentf35c01e2a5e3834094fbd98eccfc2a686872fceb (diff)
downloadCMake-efdcebddbdc47e91254461da40cec2be869a0940.zip
CMake-efdcebddbdc47e91254461da40cec2be869a0940.tar.gz
CMake-efdcebddbdc47e91254461da40cec2be869a0940.tar.bz2
VisibilityInlinesHidden: only apply -fvisibility-inlines-hidden to C++ sources
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c13b8ee..a2a66ae 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2187,7 +2187,11 @@ void cmLocalGenerator
return;
}
AddVisibilityCompileOption(flags, target, this, lang);
- AddInlineVisibilityCompileOption(flags, target, this);
+
+ if(strcmp(lang, "CXX") == 0)
+ {
+ AddInlineVisibilityCompileOption(flags, target, this);
+ }
}
//----------------------------------------------------------------------------