1 # this file has flags that are shared across languages and sets
2 # cache values that can be initialized in the platform-compiler.cmake file
3 # it may be included by more than one language.
5 SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
6 CACHE STRING "Flags used by the linker.")
9 IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
10 # default build type is none
11 IF(NOT CMAKE_NO_BUILD_TYPE)
12 SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
13 "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
14 ENDIF(NOT CMAKE_NO_BUILD_TYPE)
16 SET (CMAKE_EXE_LINKER_FLAGS_DEBUG ${CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
17 "Flags used by the linker during debug builds.")
19 SET (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL ${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT} CACHE STRING
20 "Flags used by the linker during release minsize builds.")
22 SET (CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT} "" CACHE STRING
23 "Flags used by the linker during release builds.")
25 SET (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
26 ${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
27 "Flags used by the linker during Release with Debug Info builds.")
29 SET (CMAKE_SHARED_LINKER_FLAGS_DEBUG ${CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
30 "Flags used by the linker during debug builds.")
32 SET (CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL ${CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL_INIT}
34 "Flags used by the linker during release minsize builds.")
36 SET (CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT} "" CACHE STRING
37 "Flags used by the linker during release builds.")
39 SET (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
40 ${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
41 "Flags used by the linker during Release with Debug Info builds.")
43 SET (CMAKE_MODULE_LINKER_FLAGS_DEBUG ${CMAKE_MODULE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
44 "Flags used by the linker during debug builds.")
46 SET (CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL ${CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL_INIT}
48 "Flags used by the linker during release minsize builds.")
50 SET (CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT} "" CACHE STRING
51 "Flags used by the linker during release builds.")
53 SET (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
54 ${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
55 "Flags used by the linker during Release with Debug Info builds.")
57 ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
59 SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
60 CACHE STRING "Flags used by the linker during the creation of dll's.")
63 SET (CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
64 CACHE STRING "Flags used by the linker during the creation of modules.")
66 SET(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM} CACHE INTERNAL
67 "What is the target build tool cmake is generating for.")
72 CMAKE_VERBOSE_MAKEFILE
74 CMAKE_EXE_LINKER_FLAGS
75 CMAKE_EXE_LINKER_FLAGS_DEBUG
76 CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
77 CMAKE_EXE_LINKER_FLAGS_RELEASE
78 CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
80 CMAKE_SHARED_LINKER_FLAGS
81 CMAKE_SHARED_LINKER_FLAGS_DEBUG
82 CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
83 CMAKE_SHARED_LINKER_FLAGS_RELEASE
84 CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
86 CMAKE_MODULE_LINKER_FLAGS
87 CMAKE_MODULE_LINKER_FLAGS_DEBUG
88 CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
89 CMAKE_MODULE_LINKER_FLAGS_RELEASE
90 CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO