[CMake] Use static libraries instead of object libraries

Older versions of cmake can't use target_link_libraries on object libs
This commit is contained in:
Mike Dev 2019-05-07 21:44:13 +02:00
parent ea0df23dea
commit 06a2dbcf6e

View File

@ -21,7 +21,7 @@ foreach( file IN LISTS test_files )
else() else()
# most tests are compile only, so we just need to create a object file # most tests are compile only, so we just need to create a object file
# in order to see, if it compiles # in order to see, if it compiles
add_library( ${test_name} OBJECT ${file}) add_library( ${test_name} STATIC ${file})
endif() endif()
target_link_libraries( ${test_name} PUBLIC target_link_libraries( ${test_name} PUBLIC