This repository has been archived by the owner on Aug 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.cmake
128 lines (104 loc) · 4.26 KB
/
bootstrap.cmake
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
117
118
119
120
121
122
123
124
125
126
127
128
### Added by jayen for profiling
set ( CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE} -pg" CACHE STRING
"Flags used by the C++ compiler during profile builds."
FORCE )
set ( CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE} -pg" CACHE STRING
"Flags used by the C compiler during profile builds."
FORCE )
set ( CMAKE_EXE_LINKER_FLAGS_PROFILE
"${CMAKE_EXE_LINKER_FLAGS_RELEASE} -pg" CACHE STRING
"Flags used for linking binaries during profile builds."
FORCE )
set ( CMAKE_MODULE_LINKER_FLAGS_PROFILE
"${CMAKE_MODULE_LINKER_FLAGS_RELEASE} -pg" CACHE STRING
"Flags used for linking binaries during profile builds."
FORCE )
set ( CMAKE_SHARED_LINKER_FLAGS_PROFILE
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -pg" CACHE STRING
"Flags used by the shared libraries linker during profile builds."
FORCE )
MARK_AS_ADVANCED(
CMAKE_CXX_FLAGS_PROFILE
CMAKE_C_FLAGS_PROFILE
CMAKE_EXE_LINKER_FLAGS_PROFILE
CMAKE_MODULE_LINKER_FLAGS_PROFILE
CMAKE_SHARED_LINKER_FLAGS_PROFILE )
### Added by jayen for coverage
set ( CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_RELEASE} --coverage" CACHE STRING
"Flags used by the C++ compiler during coverage builds."
FORCE )
set ( CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_RELEASE} --coverage" CACHE STRING
"Flags used by the C compiler during coverage builds."
FORCE )
set ( CMAKE_EXE_LINKER_FLAGS_COVERAGE
"${CMAKE_EXE_LINKER_FLAGS_RELEASE} --coverage" CACHE STRING
"Flags used for linking binaries during coverage builds."
FORCE )
set ( CMAKE_MODULE_LINKER_FLAGS_COVERAGE
"${CMAKE_MODULE_LINKER_FLAGS_RELEASE} --coverage" CACHE STRING
"Flags used for linking binaries during coverage builds."
FORCE )
set ( CMAKE_SHARED_LINKER_FLAGS_COVERAGE
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE} --coverage" CACHE STRING
"Flags used by the shared libraries linker during coverage builds."
FORCE )
MARK_AS_ADVANCED(
CMAKE_CXX_FLAGS_COVERAGE
CMAKE_C_FLAGS_COVERAGE
CMAKE_EXE_LINKER_FLAGS_COVERAGE
CMAKE_MODULE_LINKER_FLAGS_COVERAGE
CMAKE_SHARED_LINKER_FLAGS_COVERAGE )
## Added by Sean for mudflap
set ( CMAKE_CXX_FLAGS_MUDFLAP "-fmudflapth -g" CACHE STRING
"Flags used by the C++ compiler during mudflap builds."
FORCE )
set ( CMAKE_C_FLAGS_MUDFLAP "-fmudflapth -g" CACHE STRING
"Flags used by the C compiler during mudflap builds."
FORCE )
set ( CMAKE_EXE_LINKER_FLAGS_MUDFLAP
"-lmudflapth" CACHE STRING
"Flags used for linking binaries during mudflap builds."
FORCE )
set ( CMAKE_MODULE_LINKER_FLAGS_MUDFLAP
"-lmudflapth" CACHE STRING
"Flags used for linking binaries during mudflap builds."
FORCE )
set ( CMAKE_SHARED_LINKER_FLAGS_MUDFLAP
"-lmudflapth" CACHE STRING
"Flags used by the shared libraries linker during mudflap builds."
FORCE )
MARK_AS_ADVANCED(
CMAKE_CXX_FLAGS_MUDFLAP
CMAKE_C_FLAGS_MUDFLAP
CMAKE_EXE_LINKER_FLAGS_MUDFLAP
CMAKE_MODULE_LINKER_FLAGS_MUDFLAP
CMAKE_SHARED_LINKER_FLAGS_MUDFLAP )
### Added by jayen for valgrind
set ( CMAKE_CXX_FLAGS_VALGRIND "${CMAKE_CXX_FLAGS_RELEASE} -DVALGRIND -g" CACHE STRING
"Flags used by the C++ compiler during valgrind builds."
FORCE )
set ( CMAKE_C_FLAGS_VALGRIND "${CMAKE_C_FLAGS_RELEASE} -DVALGRIND -g" CACHE STRING
"Flags used by the C compiler during valgrind builds."
FORCE )
set ( CMAKE_EXE_LINKER_FLAGS_VALGRIND
"${CMAKE_EXE_LINKER_FLAGS_RELEASE}" CACHE STRING
"Flags used for linking binaries during valgrind builds."
FORCE )
set ( CMAKE_MODULE_LINKER_FLAGS_VALGRIND
"${CMAKE_MODULE_LINKER_FLAGS_RELEASE}" CACHE STRING
"Flags used for linking binaries during valgrind builds."
FORCE )
set ( CMAKE_SHARED_LINKER_FLAGS_VALGRIND
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE}" CACHE STRING
"Flags used by the shared libraries linker during valgrind builds."
FORCE )
MARK_AS_ADVANCED(
CMAKE_CXX_FLAGS_VALGRIND
CMAKE_C_FLAGS_VALGRIND
CMAKE_EXE_LINKER_FLAGS_VALGRIND
CMAKE_MODULE_LINKER_FLAGS_VALGRIND
CMAKE_SHARED_LINKER_FLAGS_VALGRIND )
# Update the documentation string of CMAKE_BUILD_TYPE for GUIs
SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Profile Coverage Mudflap Valgrind."
FORCE )