Skip to content

Commit 2c2035a

Browse files
committed
Update CMakeLists.txt
1 parent ba59800 commit 2c2035a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,5 @@ endif()
7070
option(BUILD_TESTS "Build tests" OFF)
7171

7272
if(BUILD_TESTS)
73-
add_executable(dmath_test tests/main.c)
74-
target_link_libraries(dmath_test dmath)
73+
add_executable(dmath_test tests/main.c $<TARGET_OBJECTS:dmath>)
7574
endif()

0 commit comments

Comments
 (0)