Merge topic 'gcc-fvisibility-version'
85e03142
GNU: Use -fvisibility on GCC 4.0 and 4.1 too
This commit is contained in:
commit
aabf8772fd
|
@ -25,7 +25,7 @@ macro(__compiler_gnu lang)
|
||||||
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.4)
|
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.4)
|
||||||
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
|
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
|
||||||
endif()
|
endif()
|
||||||
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.2)
|
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.0)
|
||||||
set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
|
set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
|
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
|
||||||
|
|
Loading…
Reference in New Issue