diff options
author | 2017-12-17 15:51:49 -0500 | |
---|---|---|
committer | 2017-12-17 15:51:49 -0500 | |
commit | 1c4a086e7556475139960a25cb642f115d057c23 (patch) | |
tree | baa407363899155a876ea6993ad55020059c5cfd /CMakeLists.txt | |
parent | Merge pull request #1519 from ggreer/clear-password-buffer-0.15 (diff) | |
parent | Adaptions for API change in json-c v0.13 (diff) | |
download | sway-1c4a086e7556475139960a25cb642f115d057c23.tar.gz sway-1c4a086e7556475139960a25cb642f115d057c23.tar.zst sway-1c4a086e7556475139960a25cb642f115d057c23.zip |
Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 99081dca..dc521570 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -9,6 +9,17 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) | |||
9 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) | 9 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) |
10 | add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Werror) | 10 | add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Werror) |
11 | 11 | ||
12 | # Add Address Sanitiezed build type | ||
13 | set(CMAKE_C_FLAGS_ASAN | ||
14 | "${CMAKE_C_FLAGS_DEBUG} -fsanitize=address -fno-omit-frame-pointer" | ||
15 | CACHE STRING "Flags used by the C compiler during address sanitizer builds." | ||
16 | FORCE ) | ||
17 | mark_as_advanced( | ||
18 | CMAKE_C_FLAGS_ASAN | ||
19 | CMAKE_EXE_LINKER_FLAGS_DEBUG | ||
20 | CMAKE_SHARED_LINKER_FLAGS_DEBUG | ||
21 | ) | ||
22 | |||
12 | list(INSERT CMAKE_MODULE_PATH 0 | 23 | list(INSERT CMAKE_MODULE_PATH 0 |
13 | ${CMAKE_CURRENT_SOURCE_DIR}/CMake | 24 | ${CMAKE_CURRENT_SOURCE_DIR}/CMake |
14 | ) | 25 | ) |