diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CompilerSetup.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/CompilerSetup.cmake b/cmake/CompilerSetup.cmake index 8bcfa76..d026f82 100644 --- a/cmake/CompilerSetup.cmake +++ b/cmake/CompilerSetup.cmake @@ -41,6 +41,10 @@ if(CLANG OR GNU) # Delete unused things -Wunused-function -Wunused-value -Wunused-variable + ) + + set( + cxx_flags # Cut down on symbol clutter # TODO(wilhuff) try -fvisibility=hidden @@ -64,7 +68,7 @@ if(CLANG OR GNU) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${flag}") endforeach() - foreach(flag ${common_flags}) + foreach(flag ${common_flags} ${cxx_flags}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") endforeach() endif() |