diff --git a/CMakeLists.txt b/CMakeLists.txt index c1f903efcf9bf0aa4a8ac61172e700bd8fcb4319..df12a45f4ab7e12c9d2abc7b7341a4fd6df373ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,9 +37,13 @@ ELSE() message("wordexp.h is not found" ) ENDIF() +### -------------- proj --------------------------- +find_package(PROJ) +if(PROJ4::proj) + list(APPEND cdo_compile_defintions ${HAVE_PROJ}) +endif() ### -------------- fftw3 --------------------------- - message("Start check for fftw3") find_package(FFTW3 3.0 REQUIRED) if(NOT FFTW3_LIBRARIES)