Really enable -fvisibility=hidden for GCC builds
[dyninst.git] / cmake / visibility.cmake
1 if(CMAKE_COMPILER_IS_GNUCXX)
2     set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
3     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
4     message(STATUS "Found g++, enabling -fvisibility=hidden")
5 endif()