From e6723b8e238bb2edb8174dece044d852ec90d6c3 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Fri, 15 Sep 2023 09:10:13 +0200 Subject: [PATCH] cmake: use newer add_compile_definitions --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29c0607..3eeeba0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,13 +76,13 @@ endif() find_package(re CONFIG REQUIRED HINTS ../re/cmake) list(APPEND RE_DEFINITIONS - -DVERSION="${PROJECT_VERSION_FULL}" - -DVER_MAJOR=${PROJECT_VERSION_MAJOR} - -DVER_MINOR=${PROJECT_VERSION_MINOR} - -DVER_PATCH=${PROJECT_VERSION_PATCH} + VERSION="${PROJECT_VERSION_FULL}" + VER_MAJOR=${PROJECT_VERSION_MAJOR} + VER_MINOR=${PROJECT_VERSION_MINOR} + VER_PATCH=${PROJECT_VERSION_PATCH} ) -add_definitions(${RE_DEFINITIONS}) +add_compile_definitions(${RE_DEFINITIONS}) include_directories( include