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:
Brad King committed 2026-05-21 10:41:13 -04:00
1 parent a57302eb79
commit 87dc852a5e
1 file changed
+1
+1
View File
@@ -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}")