summaryrefslogtreecommitdiffstats
path: root/Templates/CXXCMakeSystemConfig.cmake.in
blob: 90295340078c3301b275f31a226ef74d1e847d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# 
# 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.")

SET (CMAKE_CXX_AR_ARGS            "@CMAKE_CXX_AR_ARGS@" CACHE STRING 
     "Arguments for CMAKE_CXX_AR program to create an archive library.")

SET (CMAKE_CXX_COMPILER       "@CXX@" CACHE FILEPATH 
     "Name of C++ compiler used.")

SET (CMAKE_CXX_FLAGS          "@CXXFLAGS@" CACHE STRING 
     "Flags used by CXX compiler.")

SET (CMAKE_TEMPLATE_FLAGS     "@CMAKE_TEMPLATE_FLAGS@" CACHE STRING
     "CXX template flags used by compiler.")

SET (CMAKE_NO_ANSI_STREAM_HEADERS @CMAKE_NO_ANSI_STREAM_HEADERS@ CACHE INTERNAL 
     "Does the compiler support headers like iostream.")

SET (CMAKE_NO_STD_NAMESPACE   @CMAKE_NO_STD_NAMESPACE@  CACHE INTERNAL 
     "Does the compiler support std::.")

SET (CMAKE_NO_ANSI_FOR_SCOPE  @CMAKE_NO_ANSI_FOR_SCOPE@  CACHE INTERNAL 
     "Does the compiler support ansi for scoping.")

SET (CMAKE_COMPILER_IS_GNUCXX @CMAKE_COMPILER_IS_GNUCXX@ CACHE INTERNAL 
     "Is the compile GNU C++.")

SET (CMAKE_ANSI_CXXFLAGS      "@CMAKE_ANSI_CXXFLAGS@" CACHE INTERNAL 
     "What flags are required by the c++ compiler to make it ansi.")

SET (CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION       @CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION@  CACHE INTERNAL 
     "Does the compiler not support explicit template instantiation.")

# The following variables are advanced 

MARK_AS_ADVANCED(
CMAKE_CXX_COMPILER
CMAKE_CXX_AR
CMAKE_CXX_AR_ARGS
CMAKE_TEMPLATE_FLAGS
CMAKE_NO_ANSI_STREAM_HEADERS
CMAKE_NO_ANSI_FOR_SCOPE
CMAKE_NO_STD_NAMESPACE
CMAKE_COMPILER_IS_GNUCXX
CMAKE_ANSI_CXXFLAGS
CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION
CMAKE_CXX_LINK_SHARED
CMAKE_CXX_MODULE_BUILD_FLAGS
CMAKE_CXX_MODULE_LINK_FLAGS
CMAKE_CXX_SHLIB_BUILD_FLAGS
CMAKE_CXX_SHLIB_CFLAGS
CMAKE_CXX_SHLIB_LINK_FLAGS
CMAKE_CXX_SHLIB_RUNTIME_FLAG
CMAKE_CXX_SHLIB_RUNTIME_SEP
)