Use modern cmake thread initialization

This commit is contained in:
Jason Rhinelander 2020-03-02 18:51:16 -04:00
parent 465b398b10
commit 501534b5f4
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ find_package(Threads)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SODIUM REQUIRED libsodium)
target_link_libraries(tests Catch2::Catch2 lokimq ${SODIUM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(tests Catch2::Catch2 lokimq ${SODIUM_LIBRARIES} Threads::Threads)
set_property(TARGET tests PROPERTY CXX_STANDARD 14)
set_property(TARGET tests PROPERTY CXX_STANDARD_REQUIRED ON)