File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,13 @@ project(test_findFFTW NONE)
44# Add the parent directory (repo root) to the module path so CMake can find FindFFTW.cmake
55list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR } /.." )
66
7- # Call find_package with the assembled arguments
8- find_package (FFTW ${FFTW_TEST_VERSION} REQUIRED ${FFTW_TEST_COMPONENTS} )
7+ # Find FFTW. If FFTW_TEST_COMPONENTS is given (semicolon-separated list), those
8+ # components are required; otherwise we just require that FFTW itself is found.
9+ if (FFTW_TEST_COMPONENTS)
10+ find_package (FFTW ${FFTW_TEST_VERSION} REQUIRED COMPONENTS ${FFTW_TEST_COMPONENTS} )
11+ else ()
12+ find_package (FFTW ${FFTW_TEST_VERSION} REQUIRED )
13+ endif ()
914
1015# ---------------------------------------------------------------------------
1116# Check that the basic variables are set
You can’t perform that action at this time.
0 commit comments