Re: [CMake] making a FooConfig.cmake with components

2009-02-28 Thread Philip Lowman
On Fri, Feb 27, 2009 at 7:11 PM, Clinton Stimpson wrote: > > I'm writing a FooConfig.cmake to support > > find_package(Foo COMPONENTS A B C) > > I see that Foo_FOUND is always TRUE no matter what I try to set to from > FooConfig.cmake. > How does a FooConfig.cmake tell the caller whether the compo

[CMake] CMake article

2009-02-28 Thread Bill Hoffman
I am writing an article for the Kitware Source (http://www.kitware.com/products/thesource.html ) about how CMake aides in innovation and collaboration. If you have stories about how CMake has helped your project/research achieve its goals, I would be interested to hear them. Thanks in advanc

Re: [CMake] flex/bison modules?

2009-02-28 Thread Michael Wild
On 28. Feb, 2009, at 14:18, Eric Noulard wrote: 2009/2/28 j s : Hi, Are there packages for finding Flex and Bison available? I'm starting a porting effort to windows, and I am hoping there is a way for these to work in visual studio? I'm using this one http://cvs.savannah.gnu.org/view

Re: [CMake] flex/bison modules?

2009-02-28 Thread Eric Noulard
2009/2/28 j s : > Hi, > > Are there packages for finding Flex and Bison available?  I'm starting a > porting effort to windows, and I am hoping there is a way for these to work > in visual studio? I'm using this one http://cvs.savannah.gnu.org/viewvc/certi/scripts/FindLexYacc.cmake?root=certi&vi

Re: [CMake] How to add "-DDEBUG" just in command line?

2009-02-28 Thread Kermit Mei
Enrico Franchi wrote: On Feb 28, 2009, at 10:48 AM, Kermit Mei wrote: Hello, is there any elegant way to add "-DDEBUG" to the complier flag just in command line? IF(${CMAKE_BUILD_TYPE} STREQUAL Debug) MESSAGE("Adding Debug flag...") ADD_DEFINITIONS(-DDEBUG) ENDIF(${CMAKE_BUIL

Re: [CMake] How to add "-DDEBUG" just in command line?

2009-02-28 Thread Kermit Mei
Enrico Franchi wrote: On Feb 28, 2009, at 10:48 AM, Kermit Mei wrote: Hello, is there any elegant way to add "-DDEBUG" to the complier flag just in command line? IF(${CMAKE_BUILD_TYPE} STREQUAL Debug) MESSAGE("Adding Debug flag...") ADD_DEFINITIONS(-DDEBUG) ENDIF(${CMAKE_BUILD_TYPE} STREQUAL

[CMake] How to add "-DDEBUG" just in command line?

2009-02-28 Thread Kermit Mei
Hello, is there any elegant way to add "-DDEBUG" to the complier flag just in command line? I don't want to modify my CMakeLists.txt file, I just want to build it when I run : cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr .. I tried the following command in CMakeLists.txt: IF(CMAK

[CMake] pkg-config custom options

2009-02-28 Thread Remy Chibois
Hi all, as part of our internal software build system, we make heavy use of pkg-config .pc files, and found very useful to parametrize compile options and paths using pkg-config's "--define-variable" command line option (e.g.: use a build "chroot" or not). So far, I've been unable to find a satisf

Re: [CMake] linking cmake targets to cpack targets

2009-02-28 Thread Eric Noulard
2009/2/28 Aaron Turner : > > So is there a clean way to pass the current Cmake config variables to > a new cmake process via execute_process()?  Or do I need to create a > template file and use configure_file() to do that?  Basically, your > above example doesn't work for me because things like > $