Skip to content

Commit 04d913e

Browse files
committed
fix test/CMakeLists.txt
1 parent 8107097 commit 04d913e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ foreach(file ${test_sources})
5050
endif()
5151

5252
target_link_libraries(
53-
${PROJECT_NAME}
53+
${test_name}_Tests
5454
PUBLIC
5555
GTest::GTest
5656
GTest::Main
@@ -60,7 +60,7 @@ foreach(file ${test_sources})
6060
elseif(${CMAKE_PROJECT_NAME}_USE_CATCH2)
6161
find_package(Catch2 REQUIRED)
6262
target_link_libraries(
63-
${PROJECT_NAME}
63+
${test_name}_Tests
6464
PUBLIC
6565
Catch2::Catch2
6666
${${CMAKE_PROJECT_NAME}_TEST_LIB}
@@ -75,9 +75,9 @@ foreach(file ${test_sources})
7575

7676
add_test(
7777
NAME
78-
${PROJECT_NAME}
78+
${test_name}
7979
COMMAND
80-
${PROJECT_NAME}
80+
${test_name}_Tests
8181
)
8282
endforeach()
8383

0 commit comments

Comments
 (0)