Bug 2193075

Summary: Missing cmake file
Product: [Fedora] Fedora Reporter: Théodore Papadopoulo <papadopoulo>
Component: fftwAssignee: Conrad Meyer <cse.cem+redhatbugz>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: dcantrell, extras-qa, rdieter, sergio, susi.lehtola, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The cmake file depicted (3 lines) in the steps to reproduce. none

Description Théodore Papadopoulo 2023-05-04 08:49:37 UTC
Created attachment 1962166 [details]
The cmake file depicted (3 lines) in the steps to reproduce.

Description of problem: When trying to detect fftw3 with cmake, cmake reports that the file /usr/lib64/cmake/fftw3/FFTW3LibraryDepends.cmake is missing.

Version-Release number of selected component (if applicable):
fftw-devel-3.3.10-3.fc37.x86_64

How reproducible:
Totally reproducible

Steps to Reproduce:
1.Create a directory
2.In that directory, create a file named CMakeLists.txt that contains the 3 lines:

cmake_minimum_required(VERSION 3.26)
project(test CXX)
find_package(FFTW3 REQUIRED)

3. Make a subdirectory build and move in it.
4. cmake .

Actual results:
mururoa-> cmake ..
-- The CXX compiler identification is GNU 13.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib64/cmake/fftw3/FFTW3Config.cmake:13 (include):
  include could not find requested file:

    /usr/lib64/cmake/fftw3/FFTW3LibraryDepends.cmake
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)

Expected results:
No error.

Additional info:
Creating an empty file is enough to remove the error. But that probably not the best way to handle it.

Comment 1 Sergio Basto 2023-05-04 09:29:57 UTC
fftw3 is now fftw package