From dbe72ae4db7ca888e708243ec1af6473ad174c44 Mon Sep 17 00:00:00 2001 From: Ningfei Li Date: Sun, 18 Dec 2022 12:17:53 +0100 Subject: [PATCH] Add workaround for yaml-cpp-devel-0.7.0-1.fc38 on Fedora Rawhide. This closes #647. --- console/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/console/CMakeLists.txt b/console/CMakeLists.txt index 4e746814..aa52bd7c 100644 --- a/console/CMakeLists.txt +++ b/console/CMakeLists.txt @@ -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})