Fix openmp for Ubuntu

This commit is contained in:
Sebastian Messmer 2018-09-30 14:18:24 -07:00
parent 348b8784a0
commit 6b739bb7c9

View File

@ -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