diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-12-26 13:41:10 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-12-26 13:41:10 -0800 |
commit | 78168bfef1fa508b5c37220d068d8835184a0404 (patch) | |
tree | 6136f7d0d4003395270b96f88ef1d5637eb48a94 | |
parent | b6ffaca93e2b539ec407aeb4fd588c7f9441e7a9 (diff) |
build: replace `add_compile_definitions` (#321)
Replace `add_compile_definitions` with `add_compile_options` since the
former was introduced in 3.12.
-rwxr-xr-x | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d90eb1..7e44a5a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ if(MSVC) add_compile_options($<$<COMPILE_LANGUAGE:C>:/W4>) add_compile_options($<$<COMPILE_LANGUAGE:C>:/wd4706>) add_compile_options($<$<COMPILE_LANGUAGE:C>:/TP>) - add_compile_definitions($<$<COMPILE_LANGUAGE:C>:/D_CRT_SECURE_NO_WARNINGS>) + add_compile_options($<$<COMPILE_LANGUAGE:C>:/D_CRT_SECURE_NO_WARNINGS>) elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES Clang) add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wall>) add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wextra>) @@ -43,7 +43,7 @@ elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES Clang) endif() # Check integrity of node structure when compiled as debug -add_compile_definitions($<$<CONFIG:Debug>:CMARK_DEBUG_NODES>) +add_compile_options($<$<CONFIG:Debug>:-DCMARK_DEBUG_NODES>) add_compile_options($<$<AND:$<CONFIG:PROFILE>,$<COMPILE_LANGUAGE:C>>:-pg>) |