Skip to content

Commit

Permalink
CMake: Compatibility with new yaml-cpp release 0.8.0. (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller authored and FlorianReimold committed Jan 23, 2024
1 parent bc2a398 commit 8d7f92e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/meas_cutter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ find_package(Threads REQUIRED)
find_package(tclap REQUIRED)
find_package(yaml-cpp REQUIRED)

#compatibility with yaml-cpp < 0.8.0
if (NOT TARGET yaml-cpp::yaml-cpp AND TARGET yaml-cpp)
add_library(yaml-cpp::yaml-cpp ALIAS yaml-cpp)
endif()


set(meas_cutter_src
src/main.cpp
src/utils.h
Expand Down Expand Up @@ -49,7 +55,7 @@ ecal_add_app_console(${PROJECT_NAME} ${meas_cutter_src})
target_include_directories(${PROJECT_NAME}
PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)

target_link_libraries(${PROJECT_NAME} yaml-cpp
target_link_libraries(${PROJECT_NAME} yaml-cpp::yaml-cpp
tclap::tclap
eCAL::ecal-utils
eCAL::hdf5
Expand Down

0 comments on commit 8d7f92e

Please sign in to comment.