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.