summaryrefslogtreecommitdiffstats
path: root/Templates/CXXCMakeSystemConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'Templates/CXXCMakeSystemConfig.cmake.in')
-rw-r--r--Templates/CXXCMakeSystemConfig.cmake.in57
1 files changed, 57 insertions, 0 deletions
diff --git a/Templates/CXXCMakeSystemConfig.cmake.in b/Templates/CXXCMakeSystemConfig.cmake.in
index 5b867fb..4542120 100644
--- a/Templates/CXXCMakeSystemConfig.cmake.in
+++ b/Templates/CXXCMakeSystemConfig.cmake.in
@@ -2,6 +2,63 @@
# CMakeLocal.make.in should be in the directory where you run configure
# in, which need not be the source directory
#
+SET(CMAKE_CXX_SHLIB_CFLAGS_TMP "@CMAKE_CXX_SHLIB_CFLAGS@" )
+SET(CMAKE_CXX_SHLIB_BUILD_FLAGS_TMP "@CMAKE_CXX_SHLIB_BUILD_FLAGS@")
+SET(CMAKE_CXX_SHLIB_LINK_FLAGS_TMP "@CMAKE_CXX_SHLIB_LINK_FLAGS@")
+SET(CMAKE_CXX_MODULE_BUILD_FLAGS_TMP "@CMAKE_CXX_MODULE_BUILD_FLAGS@")
+SET(CMAKE_CXX_MODULE_LINK_FLAGS_TMP "@CMAKE_CXX_MODULE_LINK_FLAGS@")
+SET(CMAKE_CXX_SHLIB_RUNTIME_FLAG_TMP "@CMAKE_CXX_SHLIB_RUNTIME_FLAG@")
+SET(CMAKE_CXX_SHLIB_RUNTIME_SEP_TMP "@CMAKE_CXX_SHLIB_RUNTIME_SEP@")
+
+
+# if no CXX versions of these exist, then use the c versions
+IF( CMAKE_CXX_SHLIB_CFLAGS_TMP )
+ SET(CMAKE_CXX_SHLIB_CFLAGS "${CMAKE_CXX_SHLIB_CFLAGS_TMP}" CACHE STRING "")
+ELSE( CMAKE_CXX_SHLIB_CFLAGS_TMP )
+ SET(CMAKE_CXX_SHLIB_CFLAGS "${CMAKE_SHLIB_CFLAGS}" CACHE STRING "")
+ENDIF( CMAKE_CXX_SHLIB_CFLAGS_TMP )
+
+IF( CMAKE_CXX_SHLIB_BUILD_FLAGS_TMP )
+ SET(CMAKE_CXX_SHLIB_BUILD_FLAGS "${CMAKE_CXX_SHLIB_BUILD_FLAGS_TMP} CACHE STRING "")
+ELSE( CMAKE_CXX_SHLIB_BUILD_FLAGS_TMP )
+ SET(CMAKE_CXX_SHLIB_BUILD_FLAGS "${CMAKE_SHLIB_BUILD_FLAGS}" CACHE STRING "")
+ENDIF( CMAKE_CXX_SHLIB_BUILD_FLAGS_TMP )
+
+IF( CMAKE_CXX_SHLIB_LINK_FLAGS_TMP )
+ SET(CMAKE_CXX_SHLIB_LINK_FLAGS "${CMAKE_CXX_SHLIB_LINK_FLAGS_TMP}" CACHE STRING "")
+ELSE( CMAKE_CXX_SHLIB_LINK_FLAGS_TMP )
+ SET(CMAKE_CXX_SHLIB_LINK_FLAGS "${CMAKE_SHLIB_LINK_FLAGS}" CACHE STRING "")
+ENDIF( CMAKE_CXX_SHLIB_LINK_FLAGS_TMP )
+
+IF( CMAKE_CXX_MODULE_BUILD_FLAGS_TMP )
+ SET(CMAKE_CXX_MODULE_BUILD_FLAGS "${CMAKE_CXX_MODULE_BUILD_FLAGS_TMP}" CACHE STRING "" )
+ELSE( CMAKE_CXX_MODULE_BUILD_FLAGS_TMP )
+ SET(CMAKE_CXX_MODULE_BUILD_FLAGS "${CMAKE_MODULE_BUILD_FLAGS}" CACHE STRING "" )
+ENDIF( CMAKE_CXX_MODULE_BUILD_FLAGS_TMP )
+
+IF( CMAKE_CXX_MODULE_LINK_FLAGS_TMP )
+ SET(CMAKE_CXX_MODULE_LINK_FLAGS "${CMAKE_CXX_MODULE_LINK_FLAGS_TMP}" CACHE STRING "")
+ELSE( CMAKE_CXX_MODULE_LINK_FLAGS_TMP )
+ SET(CMAKE_CXX_MODULE_LINK_FLAGS "${CMAKE_MODULE_LINK_FLAGS}" CACHE STRING "")
+ENDIF( CMAKE_CXX_MODULE_LINK_FLAGS_TMP )
+
+IF( CMAKE_CXX_SHLIB_RUNTIME_FLAG_TMP )
+ SET(CMAKE_CXX_SHLIB_RUNTIME_FLAG "${CMAKE_CXX_SHLIB_RUNTIME_FLAG_TMP}" CACHE STRING "")
+ELSE( CMAKE_CXX_SHLIB_RUNTIME_FLAG_TMP )
+ SET(CMAKE_CXX_SHLIB_RUNTIME_FLAG "${CMAKE_SHLIB_RUNTIME_FLAG}" CACHE STRING "")
+ENDIF( CMAKE_CXX_SHLIB_RUNTIME_FLAG_TMP )
+
+IF( CMAKE_CXX_SHLIB_RUNTIME_SEP_TMP )
+ SET(CMAKE_CXX_SHLIB_RUNTIME_SEP "${CMAKE_CXX_SHLIB_RUNTIME_SEP_TMP}" CACHE STRING "")
+ELSE( CMAKE_CXX_SHLIB_RUNTIME_SEP_TMP )
+ SET(CMAKE_CXX_SHLIB_RUNTIME_SEP "${CMAKE_SHLIB_RUNTIME_SEP}" CACHE STRING "")
+ENDIF( CMAKE_CXX_SHLIB_RUNTIME_SEP_TMP )
+
+SET(CMAKE_CXX_LINK_SHARED "@CMAKE_CXX_LINK_SHARED@" CACHE STRING
+ "program used to link c++ shared libraries")
+
+
+
SET (CMAKE_CXX_AR "@CMAKE_CXX_AR@" CACHE FILEPATH
"Archive program used to make archive libraries of c++ object files.")