FIX openmp flags in FindBLAS.cmake
With Intel Compiler 18 -openmp is not accepted.
I changed the hardcoded flag in FindBLAS.cmake into FIND_PACKAGE(OpenMP REQUIRED):
--- a/cmake_modules/morse_cmake/modules/find/FindBLAS.cmake
+++ b/cmake_modules/morse_cmake/modules/find/FindBLAS.cmake
@@ -479,12 +479,8 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
endif()
set(BLAS_COMPILER_FLAGS "")
if (NOT BLA_VENDOR STREQUAL "Intel10_64lp_seq")
- if (CMAKE_C_COMPILER_ID STREQUAL "Intel")
- list(APPEND BLAS_COMPILER_FLAGS "-openmp")
- endif()
- if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
- list(APPEND BLAS_COMPILER_FLAGS "-fopenmp")
- endif()
+ FIND_PACKAGE(OpenMP REQUIRED)
+ list(APPEND BLAS_COMPILER_FLAGS "${OPENMP_C_FLAGS}")
endif()
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
if (BLA_VENDOR STREQUAL "Intel10_32")