summaryrefslogtreecommitdiffstats
path: root/Templates/CCMakeSystemConfig.cmake.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-26 16:21:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-26 16:21:13 (GMT)
commit73c7caa7745d773553968469495bd7749de3b07b (patch)
treef990f7cc1f42150b668743be6ca9bbaaabb3886c /Templates/CCMakeSystemConfig.cmake.in
parent991b551595b9ad22ee6556c3e89c34cd7a92b199 (diff)
downloadCMake-73c7caa7745d773553968469495bd7749de3b07b.zip
CMake-73c7caa7745d773553968469495bd7749de3b07b.tar.gz
CMake-73c7caa7745d773553968469495bd7749de3b07b.tar.bz2
BUG: fix shared links for cc on hp
Diffstat (limited to 'Templates/CCMakeSystemConfig.cmake.in')
-rw-r--r--Templates/CCMakeSystemConfig.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Templates/CCMakeSystemConfig.cmake.in b/Templates/CCMakeSystemConfig.cmake.in
index 41ec3dd..203e22d 100644
--- a/Templates/CCMakeSystemConfig.cmake.in
+++ b/Templates/CCMakeSystemConfig.cmake.in
@@ -110,9 +110,20 @@ SET (CMAKE_SIZEOF_DOUBLE @CMAKE_SIZEOF_DOUBLE@ CACHE INTERNAL "Size of doubl
FIND_PROGRAM(CMAKE_MAKE_PROGRAM NAMES gmake make )
+
+IF(CMAKE_SYSTEM MATCHES "HP-UX.*")E
+ SET (CMAKE_C_SHLIB_LINK_FLAGS "-Wl,+s" CACHE INTERNAL "shared link flags for cc")
+ SET (CMAKE_C_SHLIB_RUNTIME_FLAG "-Wl,+b," CACHE INTERNAL "runtime directory flag for cc")
+ELSE(CMAKE_SYSTEM MATCHES "HP-UX.*")
+ SET (CMAKE_C_SHLIB_LINK_FLAGS ${CMAKE_SHLIB_LINK_FLAGS} CACHE INTERNAL "shared link flags for cc")
+ SET (CMAKE_C_SHLIB_RUNTIME_FLAG ${CMAKE_SHLIB_RUNTIME_FLAG} CACHE INTERNAL "runtime directory flag for cc")
+ENDIF(CMAKE_SYSTEM MATCHES "HP-UX.*")
+
# The following variables are advanced
MARK_AS_ADVANCED(
+CMAKE_C_SHLIB_LINK_FLAGS
+CMAKE_C_SHLIB_RUNTIME_FLAG
CMAKE_X_LIBS
CMAKE_USE_WIN32_THREADS
CMAKE_USE_SPROC