Skip to content

Commit 0f75a2e

Browse files
committed
updated the CMake dependencies
1 parent 163e7f5 commit 0f75a2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

toolchain/dependencies/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ if (MFC_FFTW)
3737
CMAKE_ARGS -DBUILD_TESTS=OFF
3838
-DBUILD_SHARED_LIBS=OFF
3939
"-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
40-
PATCH_COMMAND sed -i 's/cmake_minimum_required(VERSION 2.8.3)/cmake_minimum_required(VERSION 3.5...4.0)\\ncmake_policy(VERSION 3.5)/' CMakeLists.txt
40+
PATCH_COMMAND ${CMAKE_COMMAND} -E echo "Patching FFTW for CMake 4.0 compatibility" &&
41+
sed -i 's/cmake_minimum_required(VERSION 2.8.3)/cmake_minimum_required(VERSION 3.5...4.0)\\ncmake_policy(VERSION 3.5)/' CMakeLists.txt
4142
)
4243
else()
4344
message(WARNING "The Fortran compiler vendor is Cray so FFTW3 will not be built. We will use cray-fftw instead.")

0 commit comments

Comments
 (0)