diff --git a/CMakeLists.txt b/CMakeLists.txt index 45791fc1ac..ab5d704992 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ # # ========================= eCAL LICENSE ================================= -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.15) include(CMakeDependentOption) diff --git a/app/meas_cutter/CMakeLists.txt b/app/meas_cutter/CMakeLists.txt index 159715b6e0..7b9dee4121 100644 --- a/app/meas_cutter/CMakeLists.txt +++ b/app/meas_cutter/CMakeLists.txt @@ -24,7 +24,9 @@ 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) + # ALIASing a imported non-global library requires CMake 3.18 so we do this + add_library(yaml-cpp::yaml-cpp INTERFACE IMPORTED) + target_link_libraries(yaml-cpp::yaml-cpp INTERFACE yaml-cpp) endif()