diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-26 16:21:13 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-26 16:21:13 (GMT) |
commit | 73c7caa7745d773553968469495bd7749de3b07b (patch) | |
tree | f990f7cc1f42150b668743be6ca9bbaaabb3886c /Templates/CCMakeSystemConfig.cmake.in | |
parent | 991b551595b9ad22ee6556c3e89c34cd7a92b199 (diff) | |
download | CMake-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.in | 11 |
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 |