File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,13 @@ if (MFC_FFTW)
3232 add_custom_target (fftw)
3333 else ()
3434 if (NOT CMAKE_Fortran_COMPILER_ID STREQUAL "Cray" )
35- ExternalProject_Add(fftw
36- URL "http://www.fftw.org/fftw-3.3.10.tar.gz"
37- CMAKE_ARGS -DBUILD_TESTS=OFF
38- -DBUILD_SHARED_LIBS=OFF
39- "-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} "
40- PATCH_COMMAND ${CMAKE_COMMAND} -E echo "Patching FFTW for CMake 4.0 compatibility" &&
41- ${CMAKE_COMMAND} -E copy CMakeLists.txt CMakeLists.txt.bak &&
42- ${CMAKE_COMMAND} -E echo "cmake_minimum_required(VERSION 3.5...4.0)" > tmpfile &&
43- ${CMAKE_COMMAND} -E echo "cmake_policy(VERSION 3.5)" >> tmpfile &&
44- ${CMAKE_COMMAND} -E cat CMakeLists.txt.bak >> tmpfile &&
45- ${CMAKE_COMMAND} -E copy tmpfile CMakeLists.txt &&
46- ${CMAKE_COMMAND} -E remove CMakeLists.txt.bak tmpfile
47- )
35+ ExternalProject_Add(fftw
36+ URL "http://www.fftw.org/fftw-3.3.10.tar.gz"
37+ CONFIGURE_COMMAND ./configure --prefix =${CMAKE_INSTALL_PREFIX} --enable-shared=no
38+ BUILD_COMMAND make
39+ INSTALL_COMMAND make install
40+ BUILD_IN_SOURCE 1
41+ )
4842 else ()
4943 message (WARNING "The Fortran compiler vendor is Cray so FFTW3 will not be built. We will use cray-fftw instead." )
5044 add_custom_target (fftw)
You can’t perform that action at this time.
0 commit comments