diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-26 17:05:27 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-26 17:05:27 (GMT) |
commit | f8261ff9f7085b8931da08a034569d81f87e83a5 (patch) | |
tree | 88fea472fc84df69fe1e4feb5879b92dead7fec9 /Modules | |
parent | 5fb7dab5416a3444cae09f857794cca5e312b09f (diff) | |
download | CMake-f8261ff9f7085b8931da08a034569d81f87e83a5.zip CMake-f8261ff9f7085b8931da08a034569d81f87e83a5.tar.gz CMake-f8261ff9f7085b8931da08a034569d81f87e83a5.tar.bz2 |
STYLE: change global cmake variable CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS
to the first global cmake property TARGET_SUPPORTS_SHARED_LIBS
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeGenericSystem.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/BlueGeneL.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Generic.cmake | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake index 2af179d..2b50622 100644 --- a/Modules/CMakeGenericSystem.cmake +++ b/Modules/CMakeGenericSystem.cmake @@ -20,7 +20,7 @@ SET(CMAKE_FIND_LIBRARY_PREFIXES "lib") SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a") # basically all general purpose OSs support shared libs -SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS FALSE) +SET_PROPERTIES(GLOBAL PROPERTIES TARGET_SUPPORTS_SHARED_LIBS TRUE) SET (CMAKE_SKIP_RPATH "NO" CACHE BOOL "If set, runtime paths are not added when using shared libraries.") diff --git a/Modules/Platform/BlueGeneL.cmake b/Modules/Platform/BlueGeneL.cmake index a89988a..5d9111b 100644 --- a/Modules/Platform/BlueGeneL.cmake +++ b/Modules/Platform/BlueGeneL.cmake @@ -1,5 +1,5 @@ #the compute nodes on BlueGene/L don't support shared libs -SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS TRUE) +SET_PROPERTIES(GLOBAL PROPERTIES TARGET_SUPPORTS_SHARED_LIBS FALSE) SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "") # -shared diff --git a/Modules/Platform/Generic.cmake b/Modules/Platform/Generic.cmake index 9c78745..b6629e2 100644 --- a/Modules/Platform/Generic.cmake +++ b/Modules/Platform/Generic.cmake @@ -8,5 +8,5 @@ # and/or ${CMAKE_SYSTEM_NAME}-<compiler_basename>-${CMAKE_SYSTEM_PROCESSOR}.cmake # (embedded) targets without operating system usually don't support shared libraries -SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS TRUE) +SET_PROPERTIES(GLOBAL PROPERTIES TARGET_SUPPORTS_SHARED_LIBS FALSE) |