mirror of
https://github.com/boostorg/ratio.git
synced 2025-05-09 23:24:01 +00:00
[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:
parent
ea0df23dea
commit
06a2dbcf6e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user