Skip to content
Snippets Groups Projects
Commit 307e07a6 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added options for cmor and fftw

parent 7d036ed7
No related branches found
No related tags found
No related merge requests found
Pipeline #103696 passed
......@@ -67,10 +67,9 @@ endif()
### -------------- fftw3 ---------------------------
message("Start check for fftw3")
find_package(FFTW3 3.0 REQUIRED)
if(NOT FFTW3_LIBRARIES)
message("FFTW3 not found, skipping FFTW3")
else()
option(CDO_FFTW "Enable fftw3, use -FFTW_ROOT for specific path" OFF)
if(CDO_FFTW OR FFTW_ROOT)
find_package(FFTW3 3.0 REQUIRED)
if(TARGET FFTW3::fftw3q)
set(precision_fftw "q")
elseif(TARGET FFTW3::fftw3l)
......@@ -97,7 +96,8 @@ endif ()
### -------------- CMOR -----------------------------
message("Start check for CMOR")
if(CMOR_ROOT)
option(CDO_CMOR "Enable fftw3, use -CDO_CMOR_ROOT for specific path" OFF)
if(CDO_CMOR OR CDO_CMOR_ROOT)
message("checking for CMOR requirements")
find_package(Uuid REQUIRED)
find_package(json-c REQUIRED)
......
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