RE: [CMake] COMPILE_FLAGS

2007-03-26 Thread Kishore, Jonnalagadda (IE10)
> > Kishore, Jonnalagadda (IE10) wrote: > > > Is there a variable with all the compile options concatenated? A > > > variable with common CMAKE_C_FLAGS + > CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE} + > > > ADD_DEFINITIONS() + INCLUDE_DIRECTORIES? > > > > > > > > > > > > I am looking for this for passing th

RE: [CMake] COMPILE_FLAGS

2007-03-26 Thread Kishore, Jonnalagadda (IE10)
> Kishore, Jonnalagadda (IE10) wrote: > > Is there a variable with all the compile options concatenated? A > > variable with common CMAKE_C_FLAGS + CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE} + > > ADD_DEFINITIONS() + INCLUDE_DIRECTORIES? > > > > > > > > I am looking for this for passing them to the assemble

Re: [CMake] Force rebuild

2007-03-26 Thread Min Cu
I did try to do that. However, the generated target is empty and the generarated header file is not part of the project. If I try to make it part of another library (the one where it gets included) the library does not pick the newest version of the file. The thing I do not know is how to use A

Re: [CMake] Force rebuild

2007-03-26 Thread Bill Hoffman
Min Cu wrote: Yes, that is more or less what I need. I have a project that generates a header file which is included in other projects. However, once the project is built when make is called the next time it does not get rebuilt. So, I guess my question is "How do I make the custom target run

Re: [CMake] Force rebuild

2007-03-26 Thread Min Cu
Yes, that is more or less what I need. I have a project that generates a header file which is included in other projects. However, once the project is built when make is called the next time it does not get rebuilt. So, I guess my question is "How do I make the custom target run every built?" Th

Re: [CMake] CMake and Ctest and CppUnit

2007-03-26 Thread BigWave
> That starts to be off-topic on this CMake list, so either we move it to the > CppUnit list, or you can contact me directly. For those interested in the topic or with similar problem - I moved the discussion to http://sourceforge.net/forum/forum.php?thread_id=1702314&forum_id=37108 Thanks,

Re: [CMake] Re: CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Bill Hoffman
Matthew Woehlke wrote: Bill Hoffman wrote: Matthew Woehlke wrote: A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, ot

[CMake] Re: CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Matthew Woehlke
Bill Hoffman wrote: Matthew Woehlke wrote: A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, otherwise it was clean)

Re: [CMake] Setting up Visual Studio project structure

2007-03-26 Thread Michael Bieber
HS> HS> #!/bin/sh HS> for i in *.c; do HS> echo HS> done HS> HS> Something like that? You can write the proper file lists to an extra .cmake HS> file and include that into the CMakeLists.txt file or use a template file. Yes, and I'm able to write these

Re: [CMake] CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Bill Hoffman
Matthew Woehlke wrote: A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, otherwise it was clean) I also can't seem to

[CMake] CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Matthew Woehlke
A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, otherwise it was clean) I also can't seem to find any output from th

Re: [CMake] COMPILE_FLAGS

2007-03-26 Thread kitts
On Monday 26 Mar 2007 at 11:08:07 pm, Filipe Sousa wrote: > > What are variables where the information for each of the above is > > stored? Especially for ADD_DEFINITIONS and INCLUDE_DIRECTORIES. > > GET_DIRECTORY_PROPERTY(defs DEFINITIONS) > GET_DIRECTORY_PROPERTY(includes INCLUDE_DIRECTORIES) I

Re: [CMake] COMPILE_FLAGS

2007-03-26 Thread Filipe Sousa
Kishore, Jonnalagadda (IE10) wrote: > Is there a variable with all the compile options concatenated? A > variable with common CMAKE_C_FLAGS + CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE} + > ADD_DEFINITIONS() + INCLUDE_DIRECTORIES? > > > > I am looking for this for passing them to the assembler macro wher

Re: [CMake] Setting up Visual Studio project structure

2007-03-26 Thread Hendrik Sattler
Am Montag 26 März 2007 19:17 schrieb Michael Bieber: > HS> Did you try adding a PROJECT call to every lib's CMakeLists.txt file? > HS> Then run make -G ... on the top-level CmakeLists.txt file. > > No, I'm fiddling with a single lib for the moment. > > > HS> It's in the FAQ why this is not a good i

Re: [CMake] Setting up Visual Studio project structure

2007-03-26 Thread Michael Bieber
HS> Did you try adding a PROJECT call to every lib's CMakeLists.txt file? HS> Then run make -G ... on the top-level CmakeLists.txt file. No, I'm fiddling with a single lib for the moment. HS> It's in the FAQ why this is not a good idea (well, you will miss some good HS> features) and you are for

Re: [CMake] Setting up Visual Studio project structure

2007-03-26 Thread Hendrik Sattler
Am Montag 26 März 2007 12:03 schrieb Michael Bieber: > qmake is able to write VS projects for every lib and the executable > preserving the given directory structure. How can I achieve the same thing > with cmake? My globbing attempts turned the structure into plain > header/source source groups.

[CMake] PROJECT() and its role

2007-03-26 Thread Kishore, Jonnalagadda (IE10)
I would really appreciate anyone who can throw more light to explain the role of the PROJECT command. Here is why. I have a CMakeLists.txt in top level source tree and it contains: MESSAGE("CMAKE_C_LINK_EXECUTABLE = ${CMAKE_C_LINK_EXECUTABLE} FLAGS = ${FLAGS} CMA

[CMake] COMPILE_FLAGS

2007-03-26 Thread Kishore, Jonnalagadda (IE10)
Is there a variable with all the compile options concatenated? A variable with common CMAKE_C_FLAGS + CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE} + ADD_DEFINITIONS() + INCLUDE_DIRECTORIES? I am looking for this for passing them to the assembler macro where I use ADD_CUSTOM_COMMAND. What are variables

Re: [CMake] Force rebuild

2007-03-26 Thread Eric Noulard
2007/3/26, Bill Hoffman <[EMAIL PROTECTED]>: Philip Lowman wrote: > Min Cu wrote: >> I have a project which needs to be rebuild every time make is called >> (whether the project has changed or not). How do I do it? [...] Well, I suppose you could do something like this. Write a program t

Re: [CMake] Force rebuild

2007-03-26 Thread Bill Hoffman
Philip Lowman wrote: Min Cu wrote: I have a project which needs to be rebuild every time make is called (whether the project has changed or not). How do I do it? One simple approach would simply be to remove CMakeCache.txt, run cmake from scratch and then type make. That will not cause eve

Re: [CMake] Force rebuild

2007-03-26 Thread Stefan Buschmann
Min Cu wrote: I have a project which needs to be rebuild every time make is called (whether the project has changed or not). How do I do it? Thanks, Min _ Solve the Conspiracy and win fantastic prizes. http://www.theconspiracyga

Re: [CMake] Force rebuild

2007-03-26 Thread Philip Lowman
Min Cu wrote: I have a project which needs to be rebuild every time make is called (whether the project has changed or not). How do I do it? One simple approach would simply be to remove CMakeCache.txt, run cmake from scratch and then type make. There's probably a better way though. -- Phil

Re: [CMake] slow CMake performance configuring builds on remote SMB servers

2007-03-26 Thread Philip Lowman
Bill Hoffman wrote: Most files cmake writes out are copy if different. So, cmake writes a file, then diff's it with the file that was already there, and if they are different it gets rid of the original and moves the new file into place. This is to avoid too many reloads and other side effects

Re: [CMake] 'make test' doesn't build cppunit test executable

2007-03-26 Thread Bill Hoffman
[EMAIL PROTECTED] wrote: Hi all! I'm trying to integrate cppunit tests using cmake in our ims library and cannot solve the problem how to build tests executables only by demand, i.e. by calling 'make test'. I'm quite new to cmake and don't know if this is possible at all, but I suppose it should

Re: [CMake] Re: Re: CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND...

2007-03-26 Thread Bill Hoffman
Patrick Gelin wrote: In this case it should work.Can you create a small cmake test file: CMakeLists.txt:--- add_library(foo foo.c) --end CMakeLists.txt- put that in a directory by itself. Then do this: touch foo.c mkdir b cd b cmake .. And post all the output. i

Re: [CMake] CMake and Ctest and CppUnit

2007-03-26 Thread Pascal Fleury
On Monday 26 March 2007 01:49:10 [EMAIL PROTECTED] wrote: > Hi Pascal, > > wow, thank you for your response - that helped a lot! Happy to hear it :-) > After some struggles, I got it to register one test, and to execute it. > Great. But, if I add two tests, both get registered, but only one gets

[CMake] 'make test' doesn't build cppunit test executable

2007-03-26 Thread apervukh
Hi all! I'm trying to integrate cppunit tests using cmake in our ims library and cannot solve the problem how to build tests executables only by demand, i.e. by calling 'make test'. I'm quite new to cmake and don't know if this is possible at all, but I suppose it should be possible :-) I have fou

Re: [CMake] PCHSupport.cmake

2007-03-26 Thread Rajiv Bhagwat
Precompiled headers are too good to bypass. Ideally, support for these should be built in CMake. After playing with 1260-PCHSupport.cmake for some time to get it working for Windows, I realized that a much simpler approach would be possible. Specifically, having to set & change the build type ever

[CMake] Setting up Visual Studio project structure

2007-03-26 Thread Michael Bieber
@list, I'm a new cmake user with a history in using qmake. The following seems a FAQ to me, but I'm still unable to find a solution: I have a 100 KLOC project here, splitted in some static libs and a single executable. Simplified source tree: ./lib_0 | |- basic |- gui |- other_stuff_enc

Re: [CMake] Problem with ADD_DEFINITIONS

2007-03-26 Thread Yann Renard
Kishore, Jonnalagadda (IE10) wrote: >> I have problems with ADD_DEFINITIONS : I have two target in my >> CMakeLists which I'd like to have different -D flags. If I add >> ADD_DEFINITIONS, it seems like both targets are affected. How coul I > do >> such thing ? > > You have two options. > > 1) Set

[CMake] Force rebuild

2007-03-26 Thread Min Cu
I have a project which needs to be rebuild every time make is called (whether the project has changed or not). How do I do it? Thanks, Min _ Solve the Conspiracy and win fantastic prizes. http://www.theconspiracygame.co.uk/ ___