From 6a72c7382bdd18c4e25ec528299f3c27ec3b9468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 9 Dec 2015 01:30:51 +0100 Subject: [PATCH] Fix Travis CI --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 296a0f4..11e615f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,6 +127,12 @@ function (make_tests_for target_name) get_target_property (sources ${target_name} SOURCES) get_target_property (libraries ${target_name} LINK_LIBRARIES) + # Unfortunately the property is a 2.8.11 feature however we need to + # support at least 2.8.7 for now because of Travis CI + if (NOT libraries) + set (libraries ${project_libraries}) + endif (NOT libraries) + set (test test-${target_name}) add_executable (${test} ${sources}) target_link_libraries (${test} ${libraries})