This library contains CMake code (files with .cmake extentions),
Python scripts and it is intended for simplification different actions
on the organization of the build environment.
Revision | ae79e019702f592c91350fe88dc532a7adb9d5ea (tree) |
---|---|
Zeit | 2017-10-22 02:37:56 |
Autor | Sergey Gusarov <laborer2008@gmai...> |
Commiter | Sergey Gusarov |
Added visibility-inlines-hidden compilation option for gcc/icc
@@ -12,6 +12,9 @@ | ||
12 | 12 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Winit-self") |
13 | 13 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wmissing-include-dirs") |
14 | 14 | |
15 | +# See https://gcc.gnu.org/wiki/Visibility | |
16 | +set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -fvisibility-inlines-hidden") | |
17 | + | |
15 | 18 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wnested-externs") |
16 | 19 | |
17 | 20 | if (WIN32) |
@@ -12,6 +12,9 @@ | ||
12 | 12 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Winit-self") |
13 | 13 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wmissing-include-dirs") |
14 | 14 | |
15 | +# See https://gcc.gnu.org/wiki/Visibility | |
16 | +set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -fvisibility-inlines-hidden") | |
17 | + | |
15 | 18 | if (WIN32) |
16 | 19 | # Fix problems with CT_GCC_PACKED on mingw 4.7 and above |
17 | 20 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -mno-ms-bitfields") |
@@ -10,3 +10,6 @@ | ||
10 | 10 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wcast-qual") |
11 | 11 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Winit-self") |
12 | 12 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wmissing-include-dirs") |
13 | + | |
14 | +# See https://gcc.gnu.org/wiki/Visibility | |
15 | +set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -fvisibility-inlines-hidden") |
@@ -10,3 +10,6 @@ | ||
10 | 10 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wcast-qual") |
11 | 11 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Winit-self") |
12 | 12 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -Wmissing-include-dirs") |
13 | + | |
14 | +# See https://gcc.gnu.org/wiki/Visibility | |
15 | +set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} -fvisibility-inlines-hidden") |