cmake/Modules/Compiler/GNU-CXX.cmake

13 lines
378 B
CMake
Raw Normal View History

2010-03-17 14:00:29 +02:00
include(Compiler/GNU)
__compiler_gnu(CXX)
2013-11-03 12:27:13 +02:00
if (WIN32)
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.6)
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fno-keep-inline-dllexport")
endif()
else()
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.2)
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
endif()
endif()