Skip to content

How to specify the location of the FFTW library in the CMakeLists file #645

Description

@bowenphys

While configuring Spirit, I had already loaded the FFTW environment using the module, yet Spirit failed to recognize it. Consequently, I ventured into the CMakeLists to locate the section pertaining to FFTW settings, only to find configurations related solely to C++. In response, I manually inserted set( FFTW_LIBRARIES "/public/software/mathlib/fftw/openmpi/3.3.9_double/lib" ), but alas, the FFTW library remained unrecognized.

-- Could NOT find FFTW (missing: FFTW_LIBRARIES)
CMake Warning at core/CMakeLists.txt:242 (message):
Could not find any FFTW libs -> Using kissFFT fallback

-- >> Using kissFFT
CMake Warning at core/CMakeLists.txt:258 (message):
Using kissFFT together with OpenMP. If you intend to perform calculations
including dipole-dipole interactions with OpenMP it is strongly
recommended to use FFTW instead!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions