Skip to content
Snippets Groups Projects
Commit 081f3701 authored by Yen-Chen Chen's avatar Yen-Chen Chen
Browse files

Find OpenMP package with REQUIRED keyword (!93)


## What is the bug
A package-NOTFOUND is undetected and does not raise a problem. See #20
This MR closes #20
## How do you fix it
The OpenMP find package is made `REQUIRED`.  
The find package for OpenACC has to stay `QUIET` or else it will try to look for both `OpenACC_C` and `OpenACC_Fortran`. (LUMI does not have `OpenACC_C` at the moment.)

Approved-by: default avatarJonas Jucker <jonas.jucker@env.ethz.ch>
Approved-by: default avatarSergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>
Merged-by: default avatarYen-Chen Chen <yen-chen.chen@kit.edu>
Changelog: other
parent d18160ea
No related branches found
No related tags found
1 merge request!93Resolve "Revisit find_package commands in CMake scripts"
Pipeline #71689 passed
......@@ -19,7 +19,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
if(FS_ENABLE_OMP)
find_package(OpenMP QUIET)
find_package(OpenMP REQUIRED)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${OpenMP_Fortran_FLAGS}")
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment