Skip to content

Commit d2fafc9

Browse files
committed
merge FFTW fix
1 parent 81dd52d commit d2fafc9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
cmake_minimum_required(VERSION 3.20)
1010

11+
# Set minimum policy version to 3.5 to fix FFTW compilation with CMake 4.0+
12+
set(CMAKE_POLICY_VERSION_MINIMUM "3.5" CACHE STRING "Minimum CMake policy version")
1113

1214
# We include C as a language because - for some reason -
1315
# FIND_LIBRARY_USE_LIB64_PATHS is otherwise ignored.

toolchain/dependencies/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ if (MFC_FFTW)
3636
URL "http://www.fftw.org/fftw-3.3.10.tar.gz"
3737
CMAKE_ARGS -DBUILD_TESTS=OFF
3838
-DBUILD_SHARED_LIBS=OFF
39+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
3940
"-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
4041
)
4142
else()

0 commit comments

Comments
 (0)