Re: [CMake] Link in dependencies in static library

2009-10-09 Thread Philip Lowman
On Thu, Oct 8, 2009 at 7:44 AM, Jeroen Dierckx jeroen.dier...@gmail.comwrote: Hi, One of our static libraries is a thin C++ wrapper on top of expat. I want to hide dealing with expat from the users of this library, which is no problem as I can link in the static expat library with my lib. The

Re: [CMake] How send linker options for STATIC LIBRARY?

2009-10-09 Thread Philip Lowman
On Wed, Oct 7, 2009 at 11:45 AM, Aleksandr Udovenko udovenk...@gmail.comwrote: I try cmake 2.6, 2.8 for microsoft visual studio 2005,2008. creating library: add_library(my_lib STATIC ${CPP_FILES}) I try send some linker options by set set_target_properties(my_lib PROPERTIES LINK_FLAGS

Re: [CMake] Overloading the install make rule

2009-10-09 Thread Eric Noulard
2009/10/8 Dixon, Shane shane.di...@atmel.com: I have two different version of my program: one that runs in simulation mode, and the other that runs in real mode.  Right now I just select which I want using an option -DEMULATION_MODE=ON or -DEMULATION_MODE=OFF.  The flag is checked later and

[CMake] CMake 2.8 RC2 - Visual Studio 2010 Generator - No header files

2009-10-09 Thread Tim Anil
Hi, It seems that the Visual Studio 2010 generator doesn't include the header files under the Header Files virtual directory in Visual Studio. The sources files are correctly displayed under Source Files. The .h files were listed in the add_libray() or add_executable(). This works well with the

[CMake] Adding a buildstep to all targets

2009-10-09 Thread jens persson
Hello, I'm trying to convert an old home grown buildsystem based on make to cmake and one of the requisites[1] is that I need to build each executable in two versions, one with debug symbols and one without. I have solved it now with a add_custom_command call for every target like this

Re: [CMake] Adding a buildstep to all targets

2009-10-09 Thread Hendrik Sattler
Zitat von jens persson j...@persson.cx: I'm trying to convert an old home grown buildsystem based on make to cmake and one of the requisites[1] is that I need to build each executable in two versions, one with debug symbols and one without. I have solved it now with a add_custom_command call for

[CMake] Depending on all and custom targets

2009-10-09 Thread jens persson
Hello again, I have some targets that are not build by default (using EXCLUDE_FROM_ALL), these are build when a special target called extras. Now I want to add a target that builds both all and extras, but cant seem to get it to work. For discussion I have these rules: PROJECT (tester)

Re: [CMake] Why FindBoost messaging not unified?

2009-10-09 Thread Fabio Fracassi
Philip Lowman schrieb: If you have any other CMake related suggestions please feel free to accompany your mailing list posts with a feature request and/or patch on the bugtracker if you have the time. http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindBoost.cmake?root=CMakeview=log

Re: [CMake] Depending on all and custom targets

2009-10-09 Thread Eric Noulard
2009/10/9 jens persson j...@persson.cx: add_custom_target(extras        DEPENDS bar ) which builds foo when running make all and bar when make extras I have tried to simply add: add_custom_target(complete        DEPENDS extras all ) which gives the following error: [...] I get the

Re: [CMake] Depending on all and custom targets

2009-10-09 Thread jens persson
2009/10/9 Eric Noulard eric.noul...@gmail.com: 2009/10/9 jens persson j...@persson.cx: I get the impression that I have two problems: depending on a custom_target and depending on all. Dependency from builtin target is currently unsupported. see:

Re: [CMake] Depending on all and custom targets

2009-10-09 Thread Eric Noulard
2009/10/9 jens persson j...@persson.cx: I think dependency from extras should work did you try with only extras and not all? Yes I get the following error: $ make complete [100%] Built target bar [100%] Built target extras make[3]: *** No rule to make target `extras', needed by

Re: [CMake] Depending on all and custom targets

2009-10-09 Thread Marcel Loose
Hi Jens, It's not a bug. Quoting from the docs for add_custom_target: Dependencies listed with the DEPENDS argument may reference files and outputs of custom commands created with ADD_CUSTOM_COMMAND. The problem is that your target 'extras' doesn't create any files. By saying

Re: [CMake] Why FindBoost messaging not unified?

2009-10-09 Thread Michael Jackson
I'll admit up front that I have NOT tried out the latest CVS Cmake BUT something that I sometimes have add into the FindBoost are outputs that print all the variant names of the boost library that CMake is trying to search for with the BOOST_DEBUG enabled. I think this would be useful for

Re: [CMake] How send linker options for STATIC LIBRARY?

2009-10-09 Thread Philip Lowman
On Fri, Oct 9, 2009 at 4:15 AM, Aleksandr Udovenko udovenk...@gmail.comwrote: On Fri, Oct 9, 2009 at 10:04 AM, Philip Lowman phi...@yhbt.com wrote: On Wed, Oct 7, 2009 at 11:45 AM, Aleksandr Udovenko udovenk...@gmail.com wrote: I try cmake 2.6, 2.8 for microsoft visual studio

Re: [CMake] Why FindBoost messaging not unified?

2009-10-09 Thread Philip Lowman
On Fri, Oct 9, 2009 at 6:05 AM, Fabio Fracassi fabio.fraca...@charite.dewrote: Philip Lowman schrieb: If you have any other CMake related suggestions please feel free to accompany your mailing list posts with a feature request and/or patch on the bugtracker if you have the time.

[CMake] Added Recipes section to Cmake Wiki

2009-10-09 Thread Dixon, Shane
I have a blog on linux.com where I was adding CMake recipes so that I could have a catalog of CMake recipes to refer back to when doing later projects. I figured that this is something probably best kept in the wiki, so I added a Recipes section to the main CMake wiki:

Re: [CMake] Overloading the install make rule

2009-10-09 Thread Dixon, Shane
Eric, That might work. The catch is that the difference isn't in the executable, but in the .dll that gets installed with it. I have a cryptoki-hw.dll and a cryptoki-sw.dll. Since Windows doesn't allow me to use RPATH at all, at runtime it runs whatever .dll is sitting in the same folder

[CMake] Book for 2.8 ?

2009-10-09 Thread Pau Garcia i Quiles
Hello, Any plans to publish a new edition of the book for CMake, CTest, CPack, etc 2.8 ? -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] Book for 2.8 ?

2009-10-09 Thread Bill Hoffman
Pau Garcia i Quiles wrote: Hello, Any plans to publish a new edition of the book for CMake, CTest, CPack, etc 2.8 ? Yes, we are working on a new edition. -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Finding Blas

2009-10-09 Thread Shepherd, Jason F
Hi all, I'm currently using Cmake 2.8b. I'm trying to add a requirement (based on another conditional statement) to find the LAPACK and BLAS packages to VTK's Infovis capabilities. I've added the following lines to my CMakeLists.txt FIND_PACKAGE(BLAS REQUIRED) FIND_PACKAGE(LAPACK

Re: [CMake] Finding Blas

2009-10-09 Thread Bill Hoffman
Shepherd, Jason F wrote: Hi all, I'm currently using Cmake 2.8b. I'm trying to add a requirement (based on another conditional statement) to find the LAPACK and BLAS packages to VTK's Infovis capabilities. I've added the following lines to my CMakeLists.txt FIND_PACKAGE(BLAS REQUIRED)

Re: [CMake] Wrong flags in fortran project when use c library

2009-10-09 Thread Bill Hoffman
Kelly (KT) Thompson wrote: On Fri, Oct 9, 2009 at 6:15 AM, Sebas spas...@gmail.com mailto:spas...@gmail.com wrote: I send a example where happen explained before ( I have similar struct in my Program). I include too the VS2008 project generate by cmake. In the Fortran Project be

Re: [CMake] How send linker options for STATIC LIBRARY?

2009-10-09 Thread Aleksandr Udovenko
On Fri, Oct 9, 2009 at 5:33 PM, Philip Lowman phi...@yhbt.com wrote: On Fri, Oct 9, 2009 at 4:15 AM, Aleksandr Udovenko udovenk...@gmail.com wrote: On Fri, Oct 9, 2009 at 10:04 AM, Philip Lowman phi...@yhbt.com wrote: On Wed, Oct 7, 2009 at 11:45 AM, Aleksandr Udovenko udovenk...@gmail.com

Re: [CMake] CMake 2.8.0 RC 2 ready for testing!

2009-10-09 Thread Orion Poplawski
On 10/08/2009 08:56 PM, Bill Hoffman wrote: Bill Hoffman wrote: Did you do an in-source build? That might be the problem, we almost always test out of source. That was it. Moving to out of tree worked. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA

Re: [CMake] CMake 2.8.0 RC 2 ready for testing!

2009-10-09 Thread Bill Hoffman
Orion Poplawski wrote: On 10/08/2009 08:56 PM, Bill Hoffman wrote: Bill Hoffman wrote: Did you do an in-source build? That might be the problem, we almost always test out of source. That was it. Moving to out of tree worked. I just verified that -j N1 fails with those tests when doing

Re: [CMake] CMake 2.8.0 RC 2 ready for testing!

2009-10-09 Thread Eric Noulard
2009/10/9 Bill Hoffman bill.hoff...@kitware.com: Orion Poplawski wrote: That was it.  Moving to out of tree worked. I just verified that -j N1 fails with those tests when doing in-source builds.  This can be fixed by adding some more test depends into CMake, or disabling in-source

Re: [CMake] Wrong flags in fortran project when use c library

2009-10-09 Thread Kelly (KT) Thompson
On Fri, Oct 9, 2009 at 12:49 PM, Bill Hoffman bill.hoff...@kitware.comwrote: Kelly (KT) Thompson wrote: On Fri, Oct 9, 2009 at 6:15 AM, Sebas spas...@gmail.com mailto: spas...@gmail.com wrote: I send a example where happen explained before ( I have similar struct in my Program). I

Re: [CMake] CMake 2.8.0 RC 2 ready for testing!

2009-10-09 Thread Pau Garcia i Quiles
On Sat, Oct 10, 2009 at 12:03 AM, Eric Noulard eric.noul...@gmail.com wrote: 2009/10/9 Bill Hoffman bill.hoff...@kitware.com: Orion Poplawski wrote: That was it.  Moving to out of tree worked. I just verified that -j N1 fails with those tests when doing in-source builds.  This can be fixed

[CMake] CMake 2.8.0 RC 3 ready for testing!

2009-10-09 Thread Bill Hoffman
CMake 2.8.0 RC 3 is now ready for people to try. You can find the source and binaries here: http://www.cmake.org/files/v2.8/. Here are the changes for the 2.8.0 branch so far: Changes in CMake 2.8.0 RC 3 - CTest Added OS Platform (cpu architecture) detection support to windows system -

Re: [CMake] How send linker options for STATIC LIBRARY?

2009-10-09 Thread Philip Lowman
On Fri, Oct 9, 2009 at 4:04 PM, Aleksandr Udovenko udovenk...@gmail.comwrote: On Fri, Oct 9, 2009 at 5:33 PM, Philip Lowman phi...@yhbt.com wrote: On Fri, Oct 9, 2009 at 4:15 AM, Aleksandr Udovenko udovenk...@gmail.com wrote: On Fri, Oct 9, 2009 at 10:04 AM, Philip Lowman