Skip to content

Commit

Permalink
Use PUBLIC with target_link_libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Dec 15, 2024
1 parent ad7a4f7 commit 2afecd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ include(GoogleTest)
find_package(GTest CONFIG REQUIRED)

add_executable(test-project-template test.cpp)
target_link_libraries(test-project-template GTest::gtest_main)
target_link_libraries(test-project-template PUBLIC GTest::gtest_main)

gtest_discover_tests(test-project-template)

0 comments on commit 2afecd8

Please sign in to comment.