From 5a7f7b0f70331668932c7de46d32267800a92a18 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 31 May 2023 19:15:47 +0200 Subject: [PATCH] Add cmake module to check the -fompss-2 flag --- cmake/CheckOmpSs2Compiler.cmake | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cmake/CheckOmpSs2Compiler.cmake diff --git a/cmake/CheckOmpSs2Compiler.cmake b/cmake/CheckOmpSs2Compiler.cmake new file mode 100644 index 0000000..fe298b6 --- /dev/null +++ b/cmake/CheckOmpSs2Compiler.cmake @@ -0,0 +1,4 @@ +include(CheckCCompilerFlag) + +set(CMAKE_REQUIRED_LINK_OPTIONS "-fompss-2") +check_c_compiler_flag("-fompss-2" OMPSS2_COMPILER_FOUND)