mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
FindOpenMP: Fix (non-)detection with OrangeC 7.10
The compiler does not support OpenMP. Do not try any flags. It does not fail on unknown flags.
This commit is contained in:
1 parent
a57302eb79
commit
87dc852a5e
1 file changed
+1
@@ -237,6 +237,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
|
||||
set(OMP_FLAG_CrayClang "-fopenmp")
|
||||
set(OMP_FLAG_Fujitsu "-Kopenmp" "-KOMP")
|
||||
set(OMP_FLAG_FujitsuClang "-fopenmp" "-Kopenmp")
|
||||
set(OMP_FLAG_OrangeC "")
|
||||
|
||||
if(CMAKE_${LANG}_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_${LANG}_HOST_COMPILER_ID)
|
||||
set(compiler_id "${CMAKE_${LANG}_HOST_COMPILER_ID}")
|
||||
|
||||
Reference in new issue
Block a user