Skip to content

Commit

Permalink
Add Yaml-Cpp 0.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Jan 19, 2025
1 parent 402a48f commit 89300ae
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 89300ae

Please sign in to comment.