From 06a2dbcf6e939e0198c1f73f4acf62efc5b6fbd9 Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Tue, 7 May 2019 21:44:13 +0200 Subject: [PATCH] [CMake] Use static libraries instead of object libraries Older versions of cmake can't use target_link_libraries on object libs --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a57ef11..4231246 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,7 +21,7 @@ foreach( file IN LISTS test_files ) else() # most tests are compile only, so we just need to create a object file # in order to see, if it compiles - add_library( ${test_name} OBJECT ${file}) + add_library( ${test_name} STATIC ${file}) endif() target_link_libraries( ${test_name} PUBLIC