Skip to content

Commit

Permalink
Merge pull request #68 from SeisSol/davschneller/cmake-updates
Browse files Browse the repository at this point in the history
(Re-)Add Yaml-Cpp 0.7 support
  • Loading branch information
vikaskurapati authored Jan 22, 2025
2 parents 402a48f + 89300ae commit d12f337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ target_compile_definitions(easi PUBLIC

if ("${yaml-cpp_VERSION}" VERSION_GREATER_EQUAL "0.8")
target_link_libraries(easi PUBLIC yaml-cpp::yaml-cpp)
elseif ("${yaml-cpp_VERSION}" VERSION_GREATER_EQUAL "0.7")
target_link_libraries(easi PUBLIC yaml-cpp)
else()
# fallback code for old versions
if (DEFINED YAML_CPP_INCLUDE_DIR AND EXISTS "${YAML_CPP_INCLUDE_DIR}")
Expand Down

0 comments on commit d12f337

Please sign in to comment.