This repository has been archived by the owner on Feb 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbootstrap.cmake
97 lines (78 loc) · 2.92 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
### Added by jayen for profiling
set ( CMAKE_CXX_FLAGS_PROFILE "-pg -O3 -DNDEBUG" CACHE STRING
"Flags used by the C++ compiler during profile builds."
FORCE )
set ( CMAKE_C_FLAGS_PROFILE "-pg -O3 -DNDEBUG" CACHE STRING
"Flags used by the C compiler during profile builds."
FORCE )
set ( CMAKE_EXE_LINKER_FLAGS_PROFILE
"-pg" CACHE STRING
"Flags used for linking binaries during profile builds."
FORCE )
set ( CMAKE_MODULE_LINKER_FLAGS_PROFILE
"-pg" CACHE STRING
"Flags used for linking binaries during profile builds."
FORCE )
set ( CMAKE_SHARED_LINKER_FLAGS_PROFILE
"-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 )
set ( CMAKE_CXX_FLAGS_COVERAGE "--coverage -O3 -DNDEBUG" CACHE STRING
"Flags used by the C++ compiler during coverage builds."
FORCE )
set ( CMAKE_C_FLAGS_COVERAGE "--coverage -O3 -DNDEBUG" CACHE STRING
"Flags used by the C compiler during coverage builds."
FORCE )
set ( CMAKE_EXE_LINKER_FLAGS_COVERAGE
"--coverage" CACHE STRING
"Flags used for linking binaries during coverage builds."
FORCE )
set ( CMAKE_MODULE_LINKER_FLAGS_COVERAGE
"--coverage" CACHE STRING
"Flags used for linking binaries during coverage builds."
FORCE )
set ( CMAKE_SHARED_LINKER_FLAGS_COVERAGE
"--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 )
# 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."
FORCE )