Skip to content

Commit

Permalink
Add workaround for yaml-cpp-devel-0.7.0-1.fc38 on Fedora Rawhide.
Browse files Browse the repository at this point in the history
This closes rordenlab#647.
  • Loading branch information
ningfei committed Dec 18, 2022
1 parent 9864768 commit dbe72ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ if(BATCH_VERSION)
set(YAML-CPP_DIR ${YAML-CPP_DIR} CACHE PATH "Path to yaml-cpp configuration file" FORCE)

find_package(YAML-CPP REQUIRED)
if(YAML-CPP_FOUND AND NOT YAML_CPP_LIBRARIES)
# workaround for yaml-cpp-devel-0.7.0-1.fc38 on Fedora Rawhide
set(YAML_CPP_LIBRARIES yaml-cpp)
endif()
target_include_directories(dcm2niibatch PRIVATE ${YAML_CPP_INCLUDE_DIR})
target_link_libraries(dcm2niibatch ${YAML_CPP_LIBRARIES})

Expand Down

0 comments on commit dbe72ae

Please sign in to comment.