[gmx-developers] Minor CMAKE/fftw3 problem VS2010 x64 on release-4-6 branch

Mirco Wahab mirco.wahab at chemie.tu-freiberg.de
Mon Feb 27 13:59:35 CET 2012


Hi Christoph,

Am 24.02.2012 21:30, schrieb Christoph Junghans:
> Here is a CMakeCache.txt from a recent windows build.
> <http://jenkins.gromacs.org/job/Gromacs_Gerrit_4_6/OPTIONS=Compiler=msvc%20CompilerVersion=2010%20host=bs_Win7_64,label=bs_Win7_64/ws/CMakeCache.txt>

OK, I used the patched FindFFTW.cmake and defined the relevant
portions related to fftw3 in teh following way:

D:\gromacs-build>cmake -DFFTW3F_INCLUDE_DIR=d:/Lib64/include
                        -DFFTW3F_LIBRARIES=d:/Lib64/lib/libfftw3f.lib
                        -DCMAKE_GENERATOR="Visual Studio 10 Win64"
                        -DCMAKE_PREFIX_PATH=d:/GromacsXX
                         ..\gromacs

> I made some changes to FindFFTW.cmake, which can be found here:
> <https://gerrit.gromacs.org/#/c/508/>

All will be fine until fftw3 detection sets in. The local
libfftw3f will not be found with the original and the patched
FindFFTW.cmake rule file. The patched file results in:

  ...
  -- checking for module 'fftw3f'
  --  package 'fftw3f' not found
  -- Could NOT find FFTW (missing:  FFTW_LIBRARY FFTW_INCLUDE_DIR)
     (Required is at least version "3")
     CMake Error at CMakeLists.txt:680 (MESSAGE):
     Cannot find FFTW3 (with correct precision - libfftw3f for single
     precision GROMACS or libfftw3 for double precision GROMACS).
  ...

which means that within call "find_package(FFTW 3 COMPONENTS fftwf)"
the ${FFTW_FOUND} is not set for any combination of
	d:/Lib64/lib/libfftw3f.lib
         d:\Lib64\lib\libfftw3f.lib
         /Lib64/lib/libfftw3f.lib  (same drive)

*The build will be successful* if the libraries are added "by hand"
(eg. via cmake-gui).

The (successful passed) test set run for the patched .cmake does
not include the situation: "VC201 + native windows fftw3f"
(only fftpack)=> http://jenkins.gromacs.org/job/Gromacs_Gerrit_4_6/405/


Thanks & regards

M.




More information about the gromacs.org_gmx-developers mailing list