Skip to content

Commit 95b29ac

Browse files
committed
cmake: fftw-detection module can handle dir hints
set environment variables FFTW3_INCLUDE and FFTW3_LIBS
1 parent 9232697 commit 95b29ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmake/FindFFTW.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ if(FFTW_INCLUDE_PATH)
1010
set(FFTW_FIND_QUIETLY TRUE)
1111
endif(FFTW_INCLUDE_PATH)
1212

13-
find_path(FFTW_INCLUDE_PATH fftw3.h)
13+
find_path(FFTW_INCLUDE_PATH fftw3.h
14+
HINTS $ENV{FFTW3_INCLUDE}
15+
)
1416

15-
find_library(FFTW_LIBRARIES NAMES fftw3)
17+
find_library(FFTW_LIBRARIES NAMES fftw3
18+
HINTS $ENV{FFTW3_LIB}
19+
)
1620

1721
# handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
1822
# all listed variables are TRUE

0 commit comments

Comments
 (0)