File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,14 @@ cmake_dependent_option(FUZZ "Build for fuzzing. Enabling this will disable all o
167
167
168
168
option (INSTALL_MAN "Install man pages." ON )
169
169
170
+ set (APPEND_CPPFLAGS "" CACHE STRING "Preprocessor flags that are appended to the flags added by the build system." )
171
+ set (APPEND_CFLAGS "" CACHE STRING "C compiler flags that are appended to the flags added by the build system." )
172
+ set (APPEND_CXXFLAGS "" CACHE STRING "(Objective) C++ compiler flags that are appended to the flags added by the build system." )
173
+ set (APPEND_LDFLAGS "" CACHE STRING "Linker flags that are appended to the flags added by the build system." )
174
+ string (APPEND CMAKE_CXX_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CXXFLAGS} " )
175
+ string (APPEND CMAKE_CXX_CREATE_SHARED_LIBRARY " ${APPEND_LDFLAGS} " )
176
+ string (APPEND CMAKE_CXX_LINK_EXECUTABLE " ${APPEND_LDFLAGS} " )
177
+
170
178
set (configure_warnings )
171
179
172
180
include (CheckPIESupported )
Original file line number Diff line number Diff line change 9
9
enable_language (C )
10
10
set (CMAKE_C_STANDARD 90 )
11
11
set (CMAKE_C_EXTENSIONS OFF )
12
+ string (APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS} " )
12
13
13
14
include (CheckCSourceCompiles )
14
15
check_c_source_compiles ("
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
20
20
set (CMAKE_OBJCXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} " )
21
21
set (CMAKE_OBJCXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} " )
22
22
set (CMAKE_OBJCXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} " )
23
+ string (APPEND CMAKE_OBJCXX_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CXXFLAGS} " )
23
24
endif ()
24
25
25
26
function (import_plugins target )
You can’t perform that action at this time.
0 commit comments