Fixes for symLite and tarball targets
[dyninst.git] / cmake / visibility.cmake
1 if(CMAKE_COMPILER_IS_GNUCXX  OR  "${CMAKE_C_COMPILER_ID}" MATCHES Clang)
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()