Bug 1729652 - cmake's find_package doesn't work with FFTW3
Summary: cmake's find_package doesn't work with FFTW3
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: fftw
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Conrad Meyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-13 07:54 UTC by andre.j.brand@gmx.de
Modified: 2019-07-13 07:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description andre.j.brand@gmx.de 2019-07-13 07:54:07 UTC
Description of problem:
find_package (FFTW3) in CMakeLists.txt will generate the error message:

CMake Error at /usr/lib64/cmake/fftw3/FFTW3Config.cmake:13 (include):
  include could not find load file:
 /usr/lib64/cmake/fftw3/FFTW3LibraryDepends.cmake


Version-Release number of selected component (if applicable):
Name         : fftw-devel
Version      : 3.3.8
Release      : 4.fc30
Architecture : i686
Size         : 130 k
Source       : fftw-3.3.8-4.fc30.src.rpm


How reproducible: always


Steps to Reproduce:
1. Use the line find_package (FFTW3) in *any* CMakeLists.txt

Actual results: 
CMake Error at /usr/lib64/cmake/fftw3/FFTW3Config.cmake:13 (include):
  include could not find load file:
 /usr/lib64/cmake/fftw3/FFTW3LibraryDepends.cmake


Expected results:
It should work. ;-)

Additional info:
When I build fftw-3.3.8 from source from http://www.fftw.org/download.html
via cmake, ninja, and ninja install (I presume make works just as well) in default configuration, cmake generates additional files
$(CMAKE_INSTALL_PREFIX)/lib64/cmake/fftw3/FFTW3LibraryDepends.cmake
$(CMAKE_INSTALL_PREFIX)/lib64/cmake/fftw3/FFTW3LibraryDepends-release.cmake

These should probably be included in the fftw-devel package as well?


Note You need to log in before you can comment on or make changes to this bug.