Skip to content

Commit

Permalink
#303: cmake: use GTest::gtest and GTest::gtest_main imported targets
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed May 9, 2023
1 parent ab1174f commit 471744c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ file(
#
macro(checkpoint_link_target target has_mpi)
target_include_directories(${target} PUBLIC ${PROJECT_TEST_UNIT_DIR})
target_include_directories(${target} PRIVATE ${GTEST_INCLUDE_DIRS})
target_link_libraries(${target} PRIVATE ${GTEST_BOTH_LIBRARIES})
target_link_libraries(${target} PRIVATE GTest::gtest GTest::gtest_main)
target_link_libraries(${target} PUBLIC ${CHECKPOINT_LIBRARY})

if (${has_mpi})
Expand Down

0 comments on commit 471744c

Please sign in to comment.