diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-05-18 10:12:18 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-02 10:00:51 (GMT) |
commit | 0e9f4bc00c6b26f254e74063e4026ac33b786513 (patch) | |
tree | e12a3e2c39e38d11bdfef151289810bce99c16f3 /Source/cmNinjaTargetGenerator.cxx | |
parent | 5361270c6e9898b7ea10854ae101301772cd9b7d (diff) | |
download | CMake-0e9f4bc00c6b26f254e74063e4026ac33b786513.zip CMake-0e9f4bc00c6b26f254e74063e4026ac33b786513.tar.gz CMake-0e9f4bc00c6b26f254e74063e4026ac33b786513.tar.bz2 |
Introduce target property <LANG>_VISIBILITY_PRESET
This is initialized by CMAKE_<LANG>_VISIBILITY_PRESET. The target
property is used as the operand to the -fvisibility= compile option
with GNU compilers and clang.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 850e5ea..778f86a 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -150,6 +150,9 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile *source, language.c_str(), this->GetConfigName()); + this->LocalGenerator->AddVisibilityPresetFlags(flags, this->Target, + language.c_str()); + // Add include directory flags. { std::vector<std::string> includes; |