Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / CMakeCommonLanguageInclude.cmake
blob373a9a338f50f124d23d9d543c10a5ff900f2eb8
2 # this file has flags that are shared across languages and sets
3 # cache values that can be initialized in the platform-compiler.cmake file
4 # it may be included by more than one language.
6 SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
7      CACHE STRING "Flags used by the linker.")
10 IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
11 # default build type is none
12   IF(NOT CMAKE_NO_BUILD_TYPE)
13     SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING 
14       "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
15   ENDIF(NOT CMAKE_NO_BUILD_TYPE)
16   
17   SET (CMAKE_EXE_LINKER_FLAGS_DEBUG ${CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
18      "Flags used by the linker during debug builds.")
20   SET (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL ${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT} CACHE STRING
21      "Flags used by the linker during release minsize builds.")
23   SET (CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
24      "Flags used by the linker during release builds.")
26   SET (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO 
27      ${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
28      "Flags used by the linker during Release with Debug Info builds.")
29   
30   SET (CMAKE_SHARED_LINKER_FLAGS_DEBUG ${CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
31      "Flags used by the linker during debug builds.")
33   SET (CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL ${CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL_INIT}
34      CACHE STRING
35      "Flags used by the linker during release minsize builds.")
37   SET (CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
38      "Flags used by the linker during release builds.")
40   SET (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO 
41      ${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
42      "Flags used by the linker during Release with Debug Info builds.")
44   SET (CMAKE_MODULE_LINKER_FLAGS_DEBUG ${CMAKE_MODULE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
45      "Flags used by the linker during debug builds.")
47   SET (CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL ${CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL_INIT}
48      CACHE STRING
49      "Flags used by the linker during release minsize builds.")
51   SET (CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
52      "Flags used by the linker during release builds.")
54   SET (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO 
55      ${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
56      "Flags used by the linker during Release with Debug Info builds.")
58 ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
59 # shared linker flags
60 SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
61      CACHE STRING "Flags used by the linker during the creation of dll's.")
63 # module linker flags
64 SET (CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
65      CACHE STRING "Flags used by the linker during the creation of modules.")
67 SET(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM} CACHE INTERNAL 
68      "What is the target build tool cmake is generating for.")
71 MARK_AS_ADVANCED(
72 CMAKE_BUILD_TOOL
73 CMAKE_VERBOSE_MAKEFILE 
75 CMAKE_EXE_LINKER_FLAGS
76 CMAKE_EXE_LINKER_FLAGS_DEBUG
77 CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
78 CMAKE_EXE_LINKER_FLAGS_RELEASE
79 CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
81 CMAKE_SHARED_LINKER_FLAGS
82 CMAKE_SHARED_LINKER_FLAGS_DEBUG
83 CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
84 CMAKE_SHARED_LINKER_FLAGS_RELEASE
85 CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
87 CMAKE_MODULE_LINKER_FLAGS
88 CMAKE_MODULE_LINKER_FLAGS_DEBUG
89 CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
90 CMAKE_MODULE_LINKER_FLAGS_RELEASE
91 CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO