[CMake] newbie question about inline functions

2008-09-22 Thread Roy Zuo
Hello eveyone, I am just new to cmake and have some trouble when compiling a big project whose cpp source files are put deep inside subdirectories. In my CMakeLists.txt, I use AUX_SOURCE_DIRECTORY(subdir VARX) and SET(SRC ${VAR1} ${VAR2} ...) to put all the source files in a variable, and then

[CMake] Project dependencies in VS 2003.

2008-09-22 Thread Eran Burstain
Hi all. I have a larger project, consist of some libraries. I've ported it to CMake and it've been build well at all my platforms(vs 2005,vs 2008,mingw), but VS 2003. In VS .Net 2003 cmake creates additional projects for each library, called XXX_UTILITY, and adds project dependencies through those

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-22 Thread Eric Noulard
2008/9/22 Philip Lowman [EMAIL PROTECTED]: On Sat, Sep 13, 2008 at 4:12 PM, Gotthard, Petr [EMAIL PROTECTED] wrote: Hello, would you accept a new module: FindRTI.cmake? [...] First version of the FindRTI.cmake module is ready and I volunteer to be its maintainer. I would also like to

Re: [CMake] how to link with a system library ?

2008-09-22 Thread Steven Samuel Cole
Hendrik Sattler schrieb: Am Sunday 21 September 2008 17:20:19 schrieb Eric Noulard: There is bug report about this http://www.vtk.org/Bug/view.php?id=6042 pointing to this CMake module http://code.google.com/p/cmake-modules/source/browse/trunk/Modules/GTK2/Fin dGTK2.cmake I haven't tested it

Re: [CMake] how to link with a system library ?

2008-09-22 Thread Robert Haines
CMake Error: GTK NOT FOUND -- Configuring done make: *** [cmake_check_build_system] Error 255 GTK 2.0 comes into my Kubuntu 8.0.4 system with a standard debian package. Nothing customized. All in standard paths. Make sure you have the development package installed as well as that is where

Re: [CMake] Generated file and parallel build.

2008-09-22 Thread Brad King
Óscar Fuentes wrote: Several libraries depends on a generared header file. For enabling parallel builds I need to state that dependency, and I do it with set_source_files_properties. This happens inside a macro: macro(add_llvm_library name) if( LLVM_SOURCE_COMMON_DEPENDS )

Re: [CMake] newbie question about inline functions

2008-09-22 Thread Timenkov Yuri
On Mon, Sep 22, 2008 at 10:00 AM, Roy Zuo [EMAIL PROTECTED] wrote: Hello eveyone, I am just new to cmake and have some trouble when compiling a big project whose cpp source files are put deep inside subdirectories. In my CMakeLists.txt, I use AUX_SOURCE_DIRECTORY(subdir VARX) and SET(SRC

Re: [CMake] Generated file and parallel build.

2008-09-22 Thread Óscar Fuentes
Hello, Brad. Brad King [EMAIL PROTECTED] writes: Óscar Fuentes wrote: Several libraries depends on a generared header file. For enabling parallel builds I need to state that dependency, and I do it with set_source_files_properties. This happens inside a macro: macro(add_llvm_library

Re: [CMake] Generated file and parallel build.

2008-09-22 Thread Óscar Fuentes
Óscar Fuentes [EMAIL PROTECTED] writes: macro(add_llvm_library name) add_library(${name} ${ARGN}) add_dependencies(${name} ${LLVM_SOURCE_COMMON_DEPENDS}) endmacro() This doesn't work. My wrong. This works. -- Oscar ___ CMake

[CMake] Nested While Loops

2008-09-22 Thread Mike Jackson
Does cmake support nested while loops? I have a quadruple nested while loop and it looks as though only the inner most loop is being executed once. HEre is a CMakeLists.txt file that illustrates the problem: I tried this on CMake 2.6.1 and CMake CVS HEAD.. Any help would be appreciated. I

Re: [CMake] how to link with a system library ?

2008-09-22 Thread Andreas Schneider
On Sunday 21 September 2008 18:58:50 Hendrik Sattler wrote: pointing to this CMake module http://code.google.com/p/cmake-modules/source/browse/trunk/Modules/GTK2/F in dGTK2.cmake I haven't tested it though. Looks not too good (it doesn't even use foreach for this endless list of doing

[CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Bill Hoffman
I have a release candidate (RC 5) for 2.6.2 ready for CMake. I think this one will be it for 2.6.2, so speak now or forever hold your peace... :) Thanks. The files can be found here: http://www.cmake.org/files/v2.6/*RC-5* The changes from 2.6.2 to 2.6.1 are as follows: Changes in CMake

[CMake] Exclude a target

2008-09-22 Thread Leopold Palomo Avellaneda
Hi, I create some custom targets, but I would like that make does NOT DO it if I run make, _only_ when I run make mytarget. Is this possible? Regards, Leo -- -- Linux User 152692 PGP: 0xF944807E Catalonia signature.asc Description: This is a digitally signed message part.

Re: [CMake] Exclude a target

2008-09-22 Thread Esben Mose Hansen
On Monday 22 September 2008 20:00:03 Leopold Palomo Avellaneda wrote: Hi, I create some custom targets, but I would like that make does NOT DO it if I run make, _only_ when I run make mytarget. Is this possible? Use add_custom_target without the ADD. See the doc for add_custom_target. --

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Mike Jackson
Any chance of getting Bug 6195 put into this release. This is an important bug/feature for OS X users. --- Mike Jackson - Principal Software Engineer www.bluequartz.net On Sep 22, 2008, at 1:56 PM, Bill Hoffman wrote: I have a release candidate (RC 5) for 2.6.2 ready for CMake. I think

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Alan W. Irwin
On 2008-09-22 13:56-0400 Bill Hoffman wrote: I have a release candidate (RC 5) for 2.6.2 ready for CMake. I think this one will be it for 2.6.2, so speak now or forever hold your peace... :) Could we have a fix for the enable_language bug #4772? I don't know the CMake code well enough to

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Bill Hoffman
Alan W. Irwin wrote: On 2008-09-22 13:56-0400 Bill Hoffman wrote: I have a release candidate (RC 5) for 2.6.2 ready for CMake. I think this one will be it for 2.6.2, so speak now or forever hold your peace... :) Could we have a fix for the enable_language bug #4772? I don't know the CMake

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Bill Hoffman
Mike Jackson wrote: Any chance of getting Bug 6195 put into this release. This is an important bug/feature for OS X users. Sorry, that will have to wait until 2.6.3. Too much of a new feature. There are some issues with 2.6.1 that really need to be fixed so that some existing projects

[CMake] find_library feature request

2008-09-22 Thread Christopher Harvey
Hello list, I was wondering if a better way to handle failed find_library under windows would be to give the user a chance to manually find the package before giving an error. I know the user always has the chance to specify the path afterwards in the GUI, but I think that for users that are

Re: [CMake] Exclude a target

2008-09-22 Thread Leopold Palomo Avellaneda
A Dilluns 22 Setembre 2008, Esben Mose Hansen va escriure: On Monday 22 September 2008 20:00:03 Leopold Palomo Avellaneda wrote: Hi, I create some custom targets, but I would like that make does NOT DO it if I run make, _only_ when I run make mytarget. Is this possible? Use

Re: [CMake] find_library feature request

2008-09-22 Thread Bill Hoffman
Christopher Harvey wrote: Hello list, I was wondering if a better way to handle failed find_library under windows would be to give the user a chance to manually find the package before giving an error. I know the user always has the chance to specify the path afterwards in the GUI, but I

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Mike Jackson
As long as we can get it on the todo map for 2.6.3 I am ok with that. --- Mike Jackson - Principal Software Engineer www.bluequartz.net On Sep 22, 2008, at 3:22 PM, Bill Hoffman wrote: Mike Jackson wrote: Any chance of getting Bug 6195 put into this release. This is an important

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Alan W. Irwin
On 2008-09-22 12:04-0700 Alan W. Irwin wrote: On 2008-09-22 13:56-0400 Bill Hoffman wrote: I have a release candidate (RC 5) for 2.6.2 ready for CMake. I think this one will be it for 2.6.2, so speak now or forever hold your peace... :) Could we have a fix for the enable_language bug #4772?

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Bill Hoffman
Alan W. Irwin wrote: Never mind since you indicated in your answer to Mike you were only interested in fixing newly introduced bugs for this release, and this CMake bug has been around a long time. On the other hand it is bad when a clear and obvious bug like this one persists for a long time

[CMake] Early Registration Ends Sept. 30th!

2008-09-22 Thread Bill Hoffman
Kitware is pleased to announce the next Developer's Training Week for VTK, ITK, ParaView and CMake, which will be held November 3-6, 2008 in Clifton Park, NY. Course details are provided below and online at http://www.kitware.com/products/protraining.html. Early Registration ends September 30th.

Re: [CMake] Exclude a target

2008-09-22 Thread Esben Mose Hansen
On Monday 22 September 2008 21:33:36 Leopold Palomo Avellaneda wrote: without the ALL, not the ADD, no? indeed :) -- kind regards, Esben ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] how do I test if a library target is static or shared?

2008-09-22 Thread Aleksander Demko
On Mon, Sep 22, 2008 at 4:15 PM, Mike Jackson [EMAIL PROTECTED] wrote: Assuming you mean a library that you are creating the default is static. If you want a dynamic library then use the SHARED keyword: add_library (mylib SHARED libsource.cpp) I understand that. But later in my script I want

Re: [CMake] how do I test if a library target is static or shared?

2008-09-22 Thread Mike Jackson
You will probably have to set your own variable into the cache and then check that variable later on in your scripts --- Mike Jackson - Principal Software Engineer www.bluequartz.net On Sep 22, 2008, at 5:23 PM, Aleksander Demko wrote: On Mon, Sep 22, 2008 at 4:15 PM, Mike Jackson [EMAIL

Re: [CMake] how do I test if a library target is static or shared?

2008-09-22 Thread Aleksander Demko
Dang, that won't work for me. I'm in effect trying to make my own EXPORT like command (export doesn't maintain C flags or other stuff I need) so I need to be able to gleam a bunch of info from the library targets dynamically. Basically I want to quickly build one library in one cmake session,

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Alan W. Irwin
On 2008-09-22 16:44-0400 Bill Hoffman wrote: [...]this bug is a bit of a corner case. Most projects just enable all the languages as the top of the project. In this case, no one could have a project that depends on this working because it never worked. However, I will try to get to it soon.

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Bill Hoffman
Alan W. Irwin wrote: On 2008-09-22 16:44-0400 Bill Hoffman wrote: [...]this bug is a bit of a corner case. Most projects just enable all the languages as the top of the project. In this case, no one could have a project that depends on this working because it never worked. However, I will

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Alan W. Irwin
On 2008-09-22 18:25-0400 Bill Hoffman wrote: Another approach might be to use enable_language(languageName OPTIONAL). Would this work: enable_language(Fortran OPTIONAL) project(myproject C CXX) It would always test for fortran, and enable it if they have it. If they do not have it, then

Re: [CMake] cmake 2.6.2 RC 5

2008-09-22 Thread Bill Hoffman
Alan W. Irwin wrote: enable_language(Fortran OPTIONAL) project(myproject C CXX) It would always test for fortran, and enable it if they have it. If they do not have it, then you can just turn off that binding. It won't be an error not to have it. If they do have it you can offer the

[CMake] Stop running CMake if dependencies are missing

2008-09-22 Thread Charlie Cahoon
Hello, I am using CMake to search for dependencies using `find_library` and `find_path` and when dependencies are missing I print a message out. Output: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for

Re: [CMake] Stop running CMake if dependencies are missing

2008-09-22 Thread Mike Jackson
in your message command use FATAL_ERROR instead of STATUS which should stop cmake right away. _ | Mike Jackson - Principal Software Engineer | | BlueQuartz Software | | [EMAIL PROTECTED] | |

[CMake] the switch to subversion?

2008-09-22 Thread Philip Lowman
Bill, Is a switch to Subversion still planned at some point in the near future for CMake? On occasion I have wanted to checkout the latest CVS from work and am reminded of the corporate firewall. =) -- Philip Lowman ___ CMake mailing list

[CMake] Additional testing of bug #4772

2008-09-22 Thread Alan W. Irwin
Hi Bill: I am going to change the subject line since this is now morphed into a different topic. On 2008-09-22 20:12-0400 Bill Hoffman wrote: I am thinking if you have the enable_language BEFORE the project command it will get around the bug, and work as you want it to. That doesn't work

Re: [CMake] Additional testing of bug #4772

2008-09-22 Thread Bill Hoffman
Alan W. Irwin wrote: i.e., the only pattern that gives the correct result is one that does not use ENABLE_LANGUAGE. I did all the above tests with 2.6.0, but previously I have shown the CVS version of CMake had similar problems. OK, thanks for trying it. I noticed that you only test with

Re: [CMake] Additional testing of bug #4772

2008-09-22 Thread Alan W. Irwin
On 2008-09-22 22:08-0400 Bill Hoffman wrote: Alan W. Irwin wrote: i.e., the only pattern that gives the correct result is one that does not use ENABLE_LANGUAGE. I did all the above tests with 2.6.0, but previously I have shown the CVS version of CMake had similar problems. OK, thanks for