diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4dd6dbe3..2af25ea2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -34,8 +34,7 @@ endif() # small helper function function(manif_add_gtest target) add_executable(${target} ${ARGN}) - add_dependencies(${target} gtest) - target_link_libraries(${target} ${PROJECT_NAME} gtest) + target_link_libraries(${target} ${PROJECT_NAME} GTest::gtest) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # GCC is not strict enough by default, so enable most of the warnings.