Skip to content

Commit

Permalink
Merge pull request #63 from SeisSol/davschneller/easi-define-version
Browse files Browse the repository at this point in the history
Export easi version as preprocessor macros (and version 1.5.0)
  • Loading branch information
davschneller authored Sep 30, 2024
2 parents d4ab63d + e8b86c4 commit ca1a2d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13)

project(easi)
set(EASI_VERSION_MAJOR 1)
set(EASI_VERSION_MINOR 4)
set(EASI_VERSION_MINOR 5)
set(EASI_VERSION_PATCH 0)

add_compile_definitions(
Expand Down Expand Up @@ -125,6 +125,11 @@ set_target_properties(easi PROPERTIES
CXX_EXTENSIONS OFF
)

target_compile_definitions(easi PUBLIC
EASI_VERSION_MAJOR=${EASI_VERSION_MAJOR}
EASI_VERSION_MINOR=${EASI_VERSION_MINOR}
EASI_VERSION_PATCH=${EASI_VERSION_PATCH}
)

if ("${yaml-cpp_VERSION}" VERSION_GREATER_EQUAL "0.8")
target_link_libraries(easi PUBLIC yaml-cpp::yaml-cpp)
Expand Down

0 comments on commit ca1a2d8

Please sign in to comment.