Skip to content

Commit

Permalink
Compile with -pthread instead of linking Threads::Threads
Browse files Browse the repository at this point in the history
  • Loading branch information
zxjtan committed Oct 8, 2023
1 parent 257262f commit 9fdb552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if(${OQS_USE_OPENSSL})
target_link_libraries(oqs PRIVATE ${OPENSSL_CRYPTO_LIBRARY})
endif()
if(OQS_USE_PTHREADS_IN_LIBOQS)
target_link_libraries(oqs PRIVATE Threads::Threads)
target_compile_options(oqs PUBLIC "-pthread")
endif()

target_include_directories(oqs
Expand Down

0 comments on commit 9fdb552

Please sign in to comment.