1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

FindOpenMP: Add support for Fujitsu compilers

Co-Author: Yuichiro Utsumi <utsumi.yuichiro@jp.fujitsu.com>
This commit is contained in:
Chuck Atkins
2019-09-05 15:14:29 -04:00
committed by Brad King
parent 9e0a1cf03e
commit 376c300b25

View File

@@ -130,6 +130,8 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
set(OMP_FLAG_XL "-qsmp=omp")
# Cray compiler activate OpenMP with -h omp, which is enabled by default.
set(OMP_FLAG_Cray " " "-h omp")
set(OMP_FLAG_Fujitsu "-Kopenmp" "-KOMP")
set(OMP_FLAG_FujitsuClang "-fopenmp" "-Kopenmp")
# If we know the correct flags, use those
if(DEFINED OMP_FLAG_${CMAKE_${LANG}_COMPILER_ID})