From d246964f0fe15a1e626289c07b515bce698b5873 Mon Sep 17 00:00:00 2001 From: Frank Dana Date: Mon, 16 Aug 2021 18:46:14 -0400 Subject: [PATCH] Link catch-main wtih Catch2::Catch2 (#714) Newer versions of Catch2 require C++14 to compile, a requirement that won't be propagated to the object library unless we link it to the IMPORTED Catch2::Catch2 target. --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 55504a495..822c43622 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -95,6 +95,7 @@ endif() # Create object library for test executable main(), # to avoid recompiling for every test add_library(catch-main OBJECT catch_main.cpp) +target_link_libraries(catch-main PUBLIC Catch2::Catch2) foreach(tname ${OPENSHOT_TESTS}) add_executable(openshot-${tname}-test ${tname}.cpp $)