Created
August 3, 2018 19:48
-
-
Save zoq/387c7870018b097a8482009c08726791 to your computer and use it in GitHub Desktop.
openmp.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find_package(OpenMP) | |
if (OPENMP_FOUND) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") | |
else () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment