Fix Travis CI
This commit is contained in:
parent
86d7b7aed5
commit
6a72c7382b
|
@ -127,6 +127,12 @@ function (make_tests_for target_name)
|
||||||
get_target_property (sources ${target_name} SOURCES)
|
get_target_property (sources ${target_name} SOURCES)
|
||||||
get_target_property (libraries ${target_name} LINK_LIBRARIES)
|
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})
|
set (test test-${target_name})
|
||||||
add_executable (${test} ${sources})
|
add_executable (${test} ${sources})
|
||||||
target_link_libraries (${test} ${libraries})
|
target_link_libraries (${test} ${libraries})
|
||||||
|
|
Loading…
Reference in New Issue