We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf9c71d commit 8e3ef4bCopy full SHA for 8e3ef4b
test/CMakeLists.txt
@@ -34,8 +34,7 @@ endif()
34
# small helper function
35
function(manif_add_gtest target)
36
add_executable(${target} ${ARGN})
37
- add_dependencies(${target} gtest)
38
- target_link_libraries(${target} ${PROJECT_NAME} gtest)
+ target_link_libraries(${target} ${PROJECT_NAME} GTest::gtest)
39
40
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
41
# GCC is not strict enough by default, so enable most of the warnings.
0 commit comments