]>
Commit | Line | Data |
---|---|---|
555d2fb8 JB |
1 | From 394fa85ab5f8914b82b3404844444c53f5c7f095 Mon Sep 17 00:00:00 2001 |
2 | From: tobim <tobim+github@fastmail.fm> | |
3 | Date: Thu, 11 Apr 2024 02:03:02 +0200 | |
4 | Subject: [PATCH] Fix the cmake config file when configured with autotools | |
5 | (#338) | |
6 | ||
7 | When the autotools based build is used the FFTW3ConfigDeps.cmake file is | |
8 | not generated, so including it fails with an error. By making the | |
9 | include optional, the config file can still be used in a limited | |
10 | fashion. | |
11 | --- | |
12 | FFTW3Config.cmake.in | 2 +- | |
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
14 | ||
15 | diff --git a/FFTW3Config.cmake.in b/FFTW3Config.cmake.in | |
16 | index 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) |