From 6b739bb7c97481c9b7d6df0048aa03e0247323c8 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sun, 30 Sep 2018 14:18:24 -0700 Subject: [PATCH] Fix openmp for Ubuntu --- vendor/cryptopp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/cryptopp/CMakeLists.txt b/vendor/cryptopp/CMakeLists.txt index 9685f6a6..4b861ee2 100644 --- a/vendor/cryptopp/CMakeLists.txt +++ b/vendor/cryptopp/CMakeLists.txt @@ -39,6 +39,7 @@ if(NOT DISABLE_OPENMP) target_link_libraries(OpenMP_TARGET INTERFACE ${OpenMP_CXX_FLAGS} ${Additional_OpenMP_Libraries_Workaround}) endif() + target_link_libraries(cryptopp PUBLIC ${OpenMP_CXX_FLAGS}) # Workaround for Ubuntu 18.04 that otherwise doesn't set -fopenmp for linking target_link_libraries(cryptopp PUBLIC OpenMP::OpenMP_CXX) # also add these flags to the third party Crypto++ build setup that is built in a subdirectory