Commit 8e1b415c authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis:

Fixed OpenMP detection for Windows

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6032 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9a840d5d
......@@ -71,6 +71,7 @@ foreach(FLAG ${OpenMP_C_FLAG_CANDIDATES})
set(CMAKE_REQUIRED_FLAGS "${FLAG}")
set(OpenMP_C_FLAG_DETECTED)
message(STATUS "Try OpenMP C flag = [${FLAG}]")
set(OpenMP_C_FLAG_DETECTED OpenMP_C_FLAG_DETECTED)
check_c_source_compiles("${OpenMP_CXX_TEST_SOURCE}" OpenMP_C_FLAG_DETECTED)
set(CMAKE_REQUIRED_FLAGS "${SAFE_CMAKE_REQUIRED_FLAGS}")
if(OpenMP_C_FLAG_DETECTED)
......@@ -85,6 +86,7 @@ foreach(FLAG ${OpenMP_CXX_FLAG_CANDIDATES})
set(CMAKE_REQUIRED_FLAGS "${FLAG}")
set(OpenMP_CXX_FLAG_DETECTED)
message(STATUS "Try OpenMP CXX flag = [${FLAG}]")
set(OpenMP_CXX_FLAG_DETECTED OpenMP_CXX_FLAG_DETECTED)
check_cxx_source_compiles("${OpenMP_C_TEST_SOURCE}" OpenMP_CXX_FLAG_DETECTED)
set(CMAKE_REQUIRED_FLAGS "${SAFE_CMAKE_REQUIRED_FLAGS}")
if(OpenMP_CXX_FLAG_DETECTED)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment