Skip to content

Commit

Permalink
cmake: use newer add_compile_definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Sep 15, 2023
1 parent 075d94f commit e33ebe8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e33ebe8

Please sign in to comment.