Use imported target for Threads

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
Nicolas Fella 2021-04-13 13:19:40 +02:00 committed by Nicolas Fella (Rebase PR Action)
parent 71658b0974
commit 70033cda1f

View file

@ -385,7 +385,7 @@ if(WITH_CRASHREPORTER)
if(UNIX AND NOT MAC)
find_package(Threads REQUIRED)
target_link_libraries(nextcloudCore PUBLIC ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(nextcloudCore PUBLIC Threads::Threads)
endif()
endif()