Skip to content

Commit

Permalink
Let CMake link the correct target for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Sep 20, 2023
1 parent 8bd736d commit c00c0d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ set(TEST_SOURCES
)

add_executable(${PROJECT_NAME}_tests ${TEST_SOURCES})
target_link_libraries(${PROJECT_NAME}_tests doctest::doctest cppIni)

target_link_libraries(${PROJECT_NAME}_tests doctest::doctest ${PROJECT_NAME})
target_compile_definitions(${PROJECT_NAME}_tests
PUBLIC
DOCTEST_CONFIG_NO_MULTITHREADING
Expand Down

0 comments on commit c00c0d3

Please sign in to comment.