Skip to content
Snippets Groups Projects
Commit a2c688e2 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Add HINTS to find FFTW3.

Added HINTS to find_library() and find_path() of FFTW3. This is necessary
on systems where FFTW3 is loaded as a module, otherwise CMake might find
the system default, instead of the module version.
parent 3f9439aa
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ include_directories(${CASACORE_INCLUDE_DIRS})
find_package(CFITSIO REQUIRED)
include_directories(${CFITSIO_INCLUDE_DIR})
find_path(FFTW3_INCLUDE_DIR NAMES fftw3.h)
find_path(FFTW3_INCLUDE_DIR NAMES fftw3.h HINTS ENV FFTW3_INCLUDE)
find_library(GSL_LIB NAMES gsl)
find_library(GSL_CBLAS_LIB NAMES gslcblas)
......@@ -79,7 +79,7 @@ include_directories(${PYTHON_INCLUDE_DIRS})
find_package(Boost 1.56.0 REQUIRED COMPONENTS date_time filesystem system unit_test_framework)
include_directories(${Boost_INCLUDE_DIR})
find_library(FFTW3_LIB fftw3 REQUIRED)
find_library(FFTW3_LIB fftw3 REQUIRED HINTS ENV FFTW3_LIB)
include_directories(${FFTW3_INCLUDE_DIR})
enable_language(Fortran OPTIONAL)
......
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