From 78168bfef1fa508b5c37220d068d8835184a0404 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 26 Dec 2019 13:41:10 -0800 Subject: build: replace `add_compile_definitions` (#321) Replace `add_compile_definitions` with `add_compile_options` since the former was introduced in 3.12. --- CMakeLists.txt | 4 ++-- 1 file 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($<$:/W4>) add_compile_options($<$:/wd4706>) add_compile_options($<$:/TP>) - add_compile_definitions($<$:/D_CRT_SECURE_NO_WARNINGS>) + add_compile_options($<$:/D_CRT_SECURE_NO_WARNINGS>) elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES Clang) add_compile_options($<$:-Wall>) add_compile_options($<$:-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($<$:CMARK_DEBUG_NODES>) +add_compile_options($<$:-DCMARK_DEBUG_NODES>) add_compile_options($<$,$>:-pg>) -- cgit v1.2.3