Re: [CMake] FFTW_FOUND is true even if it is not found?

2011-08-22 Thread Michael Wild
On Mon 22 Aug 2011 10:20:56 PM CEST, David Doria wrote: >> From just that module, I do not have a reasonable explanation... >> >> What does this code output, when placed: >> (1) directly after the find_package(FFTW) call? >> (2) at the very bottom of your CMakeLists.txt file...? >> >> message(STAT

Re: [CMake] Pseudo library

2011-08-22 Thread Michael Hertling
On 08/20/2011 04:33 AM, ☂Josh Chia (谢任中) wrote: > I have a C++ .h file with template classes that require the Python and > Boost-Python libraries for successful linking. There is no associated .cpp > file. > > I consider this .h file a library that other parts of my project can use. > The CMakefil

Re: [CMake] FFTW_FOUND is true even if it is not found?

2011-08-22 Thread David Doria
> From just that module, I do not have a reasonable explanation... > > What does this code output, when placed: > (1) directly after the find_package(FFTW) call? > (2) at the very bottom of your CMakeLists.txt file...? > >  message(STATUS "FFTW_INCLUDE_DIR='${FFTW_INCLUDE_DIR}'") >  message(STATUS

Re: [CMake] FFTW_FOUND is true even if it is not found?

2011-08-22 Thread David Cole
On Mon, Aug 22, 2011 at 12:01 PM, David Doria wrote: > Using this FindFFTW.cmake: > > http://code.google.com/p/qmcpack/source/browse/trunk/CMake/FindFFTW.cmake?spec=svn4506&r=4506 > > FFTW_FOUND is true even though: > > FFTW_INCLUDE_DIR = FFTW_INCLUDE_DIR-NOTFOUND > FFTW_LIBRARIES = FFTW_LIBRARIES

[CMake] FFTW_FOUND is true even if it is not found?

2011-08-22 Thread David Doria
Using this FindFFTW.cmake: http://code.google.com/p/qmcpack/source/browse/trunk/CMake/FindFFTW.cmake?spec=svn4506&r=4506 FFTW_FOUND is true even though: FFTW_INCLUDE_DIR = FFTW_INCLUDE_DIR-NOTFOUND FFTW_LIBRARIES = FFTW_LIBRARIES_NOTFOUND Can anyone explain that? Thanks, David ___

Re: [CMake] Sourcefiles compile but no library built

2011-08-22 Thread David Cole
Is it just a case-sensitive typo? You say make complains that it can't find "libUtil.so" -- but your actual library should be named "libutil.so" (lower case u) according to your add_library call. (I'm assuming MIIND_LIBRARY_PREFIX is the empty string...?) If that's not it, you can use "make VERBO

Re: [CMake] copy a folder and subfolders with the INSTALL() command

2011-08-22 Thread Michael Wild
On Mon 22 Aug 2011 04:44:35 PM CEST, Julien Dardenne wrote: > Hi, > > I try to copy when installing the headers of my project. > But I can't copy them, keeping the tree. > Is it possible to keep the tree with the install() command ? > > Thanks Try the install(DIRECTORY ...) signature. If there a

[CMake] copy a folder and subfolders with the INSTALL() command

2011-08-22 Thread Julien Dardenne
Hi, I try to copy when installing the headers of my project. But I can't copy them, keeping the tree. Is it possible to keep the tree with the install() command ? Thanks ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

[CMake] Sourcefiles compile but no library built

2011-08-22 Thread Marc de Kamps
Hi, Below you find a CMakeLists.txt that used to do what I needed: compile the source files and create a library. I recently changed from 2.6 to 2.8. The source files are being compiled, but the resulting so is nowhere to be found. There are no error messages: I have checked that the environme

Re: [CMake] Performing cleanup after build

2011-08-22 Thread NoRulez
Hi, sorry, but yes, I meant from "ctest -S". Thanks for the answer Best Regards Am 22.08.2011 um 14:24 schrieb David Cole : > In what context? A "ctest -S" script? Or something else? > > You can use "file(REMOVE_RECURSE "${CTEST_BINARY_DIRECTORY}/Testing")" > from a ctest -S script. > > You'd

Re: [CMake] Error running link command: Bus error

2011-08-22 Thread David Cole
On Mon, Aug 22, 2011 at 5:04 AM, Eric Noulard wrote: > 2011/8/22 Patrick Gampp : >> Hi all, >> I did some cmake projects on MacOSX with the Xcode-generator and everything >> works fine. >> >> But when I use the unix makefiles cmake generator, my projects cannot >> correctly be built. >> I tried

Re: [CMake] Performing cleanup after build

2011-08-22 Thread David Cole
In what context? A "ctest -S" script? Or something else? You can use "file(REMOVE_RECURSE "${CTEST_BINARY_DIRECTORY}/Testing")" from a ctest -S script. You'd have to call it before ctest_start, though, because that's what writes the Testing/TAG file that saves the build stamp for the rest of the

[CMake] Setting the directory associated with a target

2011-08-22 Thread Mathias Gaunard
Hi, I've recently moved from using the simple Makefile generator to the Eclipse CDT one, and I have noticed that targets only appear in the directory in which they were created. Is there a way to specify which directory a target should appear in? I tend to define "parent" targets when the fi

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-08-22 Thread Johannes Stallkamp
Probably a bit late, but I was on vacaction: http://www.cmake.org/Bug/view.php?id=12260 Johannes ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep message

Re: [CMake] Error running link command: Bus error

2011-08-22 Thread Eric Noulard
2011/8/22 Patrick Gampp : > Hi all, > I did some cmake projects on MacOSX with the Xcode-generator and everything > works fine. > > But when I use the unix makefiles cmake generator, my projects cannot > correctly be built. > I tried to build a minimal example from the cmake Tutorial, where step1

[CMake] Error running link command: Bus error

2011-08-22 Thread Patrick Gampp
Hi all, I did some cmake projects on MacOSX with the Xcode-generator and everything works fine. But when I use the unix makefiles cmake generator, my projects cannot correctly be built. I tried to build a minimal example from the cmake Tutorial, where step1 works but step 2 does not. I get th