diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-22 13:15:00 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-22 13:15:00 (GMT) |
commit | 6be930f0cfca31d62c3dc498b3fc9e756acca710 (patch) | |
tree | 5775fc0e5615510b017aedf9f12c6987532b6b54 /Modules/Platform | |
parent | b759765134f3e757d7477b598aa71454a8300fc1 (diff) | |
download | CMake-6be930f0cfca31d62c3dc498b3fc9e756acca710.zip CMake-6be930f0cfca31d62c3dc498b3fc9e756acca710.tar.gz CMake-6be930f0cfca31d62c3dc498b3fc9e756acca710.tar.bz2 |
STYLE: move the two CMAKE_SHARED_LIBRARYC/CXX_FLAGS for gcc from
CMakeGenericSystem.cmake to gcc.cmake
Alex
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/gcc.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/gcc.cmake b/Modules/Platform/gcc.cmake index 6493c62..695a55f 100644 --- a/Modules/Platform/gcc.cmake +++ b/Modules/Platform/gcc.cmake @@ -1,4 +1,5 @@ IF(CMAKE_COMPILER_IS_GNUCC) + SET (CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic SET (CMAKE_C_FLAGS_INIT "") SET (CMAKE_C_FLAGS_DEBUG_INIT "-g") SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") @@ -12,6 +13,7 @@ IF(CMAKE_COMPILER_IS_GNUCC) ENDIF(CMAKE_COMPILER_IS_GNUCC) IF(CMAKE_COMPILER_IS_GNUCXX) + SET (CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic SET (CMAKE_CXX_FLAGS_INIT "") SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g") SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") @@ -23,4 +25,3 @@ IF(CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ") ENDIF(NOT APPLE) ENDIF(CMAKE_COMPILER_IS_GNUCXX) - |