]> git.pld-linux.org Git - packages/fftw3.git/blame - fftw-cmake.patch
- git patch to make FFTWLibraryDepends.cmake files optional, install to proper dirs
[packages/fftw3.git] / fftw-cmake.patch
CommitLineData
555d2fb8
JB
1From 394fa85ab5f8914b82b3404844444c53f5c7f095 Mon Sep 17 00:00:00 2001
2From: tobim <tobim+github@fastmail.fm>
3Date: Thu, 11 Apr 2024 02:03:02 +0200
4Subject: [PATCH] Fix the cmake config file when configured with autotools
5 (#338)
6
7When the autotools based build is used the FFTW3ConfigDeps.cmake file is
8not generated, so including it fails with an error. By making the
9include optional, the config file can still be used in a limited
10fashion.
11---
12 FFTW3Config.cmake.in | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/FFTW3Config.cmake.in b/FFTW3Config.cmake.in
16index 6b1fbc2e1..6e073f5c8 100644
17--- a/FFTW3Config.cmake.in
18+++ b/FFTW3Config.cmake.in
19@@ -10,7 +10,7 @@ set (FFTW3@PREC_SUFFIX@_LIBRARIES fftw3@PREC_SUFFIX@)
20 set (FFTW3@PREC_SUFFIX@_LIBRARY_DIRS @CMAKE_INSTALL_FULL_LIBDIR@)
21 set (FFTW3@PREC_SUFFIX@_INCLUDE_DIRS @CMAKE_INSTALL_FULL_INCLUDEDIR@)
22
23-include ("${CMAKE_CURRENT_LIST_DIR}/FFTW3LibraryDepends.cmake")
24+include ("${CMAKE_CURRENT_LIST_DIR}/FFTW3LibraryDepends.cmake" OPTIONAL)
25
26 if (CMAKE_VERSION VERSION_LESS 2.8.3)
27 set (CMAKE_CURRENT_LIST_DIR)
This page took 0.029726 seconds and 4 git commands to generate.