From a4979bbf49b4a3c81a01eed2089af6fd5b38c40c Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 10 Sep 2024 11:15:40 +0200 Subject: [PATCH] fix(cmake): correct way to add definition --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf0b78d..9a68f26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) option(WITH_CLUTCHLOG "Define WITH_CLUTCHLOG, whatever the build type." OFF) if(WITH_CLUTCHLOG) - add_definitions(-DWITH_CLUTCHLOG) + add_compile_definitions(WITH_CLUTCHLOG) endif() # Do not build documentation by default.