summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-04 20:22:10 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-04 20:22:10 (GMT)
commit847c8403fe23e241d7fd3a7478790938afc24a9e (patch)
tree3ef399b494caa9d489f87a4fbd683783970713c9 /Modules/Platform
parentc12a7e388d449e96107ba1eea8b8b2f2469ec20f (diff)
downloadCMake-847c8403fe23e241d7fd3a7478790938afc24a9e.zip
CMake-847c8403fe23e241d7fd3a7478790938afc24a9e.tar.gz
CMake-847c8403fe23e241d7fd3a7478790938afc24a9e.tar.bz2
BUG: Added TARGET_ARCHIVES_MAY_BE_SHARED_LIBS global property to help compute proper rpath information on AIX when shared libraries have names like "libfoo.a".
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/AIX.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/AIX.cmake b/Modules/Platform/AIX.cmake
index d6b6af0..455586d 100644
--- a/Modules/Platform/AIX.cmake
+++ b/Modules/Platform/AIX.cmake
@@ -12,6 +12,9 @@ SET(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib /lib)
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-blibpath:")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
+# Files named "libfoo.a" may actually be shared libraries.
+SET_PROPERTY(GLOBAL PROPERTY TARGET_ARCHIVES_MAY_BE_SHARED_LIBS 1)
+
# CXX Compiler
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -Wl,-G") # -shared