forked from FFTW/fftw3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installs FFTW3Config.cmake instead of a FindFFTW3.cmake Also configures the pkgconfig file from cmake
- Loading branch information
Showing
5 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# defined since 2.8.3 | ||
if (CMAKE_VERSION VERSION_LESS 2.8.3) | ||
get_filename_component (CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH) | ||
endif () | ||
|
||
set (FFTW3@PREC_SUFFIX@_LIBRARIES @fftw3_lib@) | ||
set (FFTW3@PREC_SUFFIX@_LIBRARY_DIRS @CMAKE_INSTALL_PREFIX@/@LIBRARY_PATH@) | ||
set (FFTW3@PREC_SUFFIX@_INCLUDE_DIRS @CMAKE_INSTALL_PREFIX@/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
set (PACKAGE_VERSION "@FFTW_VERSION@") | ||
|
||
# Check whether the requested PACKAGE_FIND_VERSION is compatible | ||
if ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") | ||
set (PACKAGE_VERSION_COMPATIBLE FALSE) | ||
else () | ||
set (PACKAGE_VERSION_COMPATIBLE TRUE) | ||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") | ||
set (PACKAGE_VERSION_EXACT TRUE) | ||
endif () | ||
endif () |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ endif | |
SUBDIRS=support $(GENFFT) kernel simd-support dft rdft reodft api \ | ||
libbench2 $(CHICKEN_EGG) tests mpi $(DOCDIR) tools m4 | ||
EXTRA_DIST=COPYRIGHT bootstrap.sh CONVENTIONS fftw.pc.in \ | ||
CMakeLists.txt cmake.config.h.in FindFFTW3.cmake.in | ||
CMakeLists.txt cmake.config.h.in FFTW3Config.cmake.in FFTW3ConfigVersion.cmake.in | ||
|
||
SIMD_LIBS = simd-support/libsimd_support.la | ||
|
||
|
@@ -142,14 +142,14 @@ fftw3@[email protected]: fftw.pc | |
pkgconfigdir = $(libdir)/pkgconfig | ||
pkgconfig_DATA = fftw3@[email protected] | ||
|
||
FindFFTW3@[email protected]: $(top_srcdir)/FindFFTW3.cmake.in | ||
FFTW3@PREC_SUFFIX@Config.cmake: $(top_srcdir)/FFTW3Config.cmake.in | ||
$(SED) \ | ||
-e 's|[@]PREC_SUFFIX@|@PREC_SUFFIX@|g' \ | ||
-e 's|[@]libdir@|$(libdir)|g' \ | ||
-e 's|[@]includedir@|$(includedir)|g' \ | ||
$(top_srcdir)/FindFFTW3.cmake.in > $@ | ||
cmakedir = $(datarootdir)/cmake/Modules | ||
cmake_DATA = FindFFTW3@[email protected] | ||
$(top_srcdir)/FFTW3Config.cmake.in > $@ | ||
cmakedir = $(libdir)/cmake/fftw3 | ||
cmake_DATA = FFTW3@PREC_SUFFIX@Config.cmake | ||
|
||
WISDOM_DIR = /etc/fftw | ||
WISDOM = wisdom@PREC_SUFFIX@ | ||
|