Don't link 2 times to same library.

This commit is contained in:
tastytea 2019-08-16 17:54:47 +02:00
parent 2802095443
commit 90ace582bf
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ else() # Catch 1.x
get_filename_component(bin ${src} NAME_WE)
add_executable(${bin} main.cpp ${src})
target_link_libraries(${bin}
PRIVATE ${PROJECT_NAME} ${PROJECT_NAME})
PRIVATE ${PROJECT_NAME})
add_test(${bin} ${bin} "${EXTRA_TEST_ARGS}")
endforeach()
else()