[CMake] Protecting spaces

2007-10-05 Thread Guenther.Stangassinger
Hi cmake-team, i have a question. in my cmake file i have the following line: SET(CMAKE_CXX_COMPILER "C:/Program Files/Microsoft/ Visual Studio 8/VC/ce/bin/x86_arm/cl.exe") When i apply nmake afterwards i get this error: Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht g

[CMake] Weird error message

2007-10-05 Thread Jesper Eskilson
What does the following error message mean: "Re-run cmake no build system arguments" -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Removing configurations.

2007-10-05 Thread Josef Karthauser
Quick question if I may. I can add a configuration by using following the instructions here: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build_modes_wit h_a_custom_made_one_.3F How do I go about removing an existing one? Joe ___ CMake

[CMake] Problem with macro

2007-10-05 Thread Alexander.Camek
Hi List, I have written a macro in order to use it as a new command in cmake. This macro looks like this; MACRO(C2ADA _file _option) IF(C2ADA_PARSER) SET(INC_DIRS -I;-I) GET_FILENAME_COMPONENT(_name ${_file} NAME) GET_FILENAME_COMPONENT(_basename ${_file}

RE: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Atwood, Robert C
>> From: Alan W. Irwin (on cmake list) > > Yes, [svnversion] is the whole point! It is much easier > than using individual > > revision nubmers for each file. > > Although not nearly as informative. I just tried svnversion, > and it only > gives a range of Revision numbers for the source tre

[CMake] Supported configurations with Visual Studio builds

2007-10-05 Thread Josef Karthauser
I’m confused (not for the first time! ☺). Why is it that cmGlobalVisualStudio7Generator only supports DEBUG, RELEASE, MINSIZEREL and RELWITHDEBINFO? They’re mostly placeholders anyway so it seems wierd that they are hardcoded and enforced. Is this a bug or a feature, does anyone know? If I r

Re: [CMake] Supported configurations with Visual Studio builds

2007-10-05 Thread Sylvain Benner
Is this a bug or a feature, does anyone know? If I rip out the checks in cmGlobalVisualStudio7Generator:: GenerateConfigurations is anything going to break? If you rip out this I think you'll have an error with TRY_COMPILE. (be aware to delete your CMakeLists.txt cache each time you test

RE: [CMake] Supported configurations with Visual Studio builds

2007-10-05 Thread Josef Karthauser
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Josef Karthauser > Sent: 05 October 2007 15:44 > To: cmake@cmake.org > Subject: [CMake] Supported configurations with Visual Studio builds > > I’m confused (not for the first time! ☺). > > Why is it

Re: [CMake] Supported configurations with Visual Studio builds

2007-10-05 Thread Sylvain Benner
If you rip out this I think you'll have an error with TRY_COMPILE. (be aware to delete your CMakeLists.txt cache each time you test your changes to be sure that the TRY_COMPILE is able to work correctly). I meant CMakeCache.txt not CMakeLists.txt, sorry. --Sylvain

RE: [CMake] Supported configurations with Visual Studio builds

2007-10-05 Thread Josef Karthauser
> > > Is this a bug or a feature, does anyone know? If I rip out the > checks in cmGlobalVisualStudio7Generator:: GenerateConfigurations is > anything going to break? > > > > > If you rip out this I think you'll have an error with TRY_COMPILE. (be > aware to delete your CMakeLists.txt cache each

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread David Cole
As Alan points out, you shouldn't trust the output of "svn info" as gospel unless you also verify that "svn status" gives you *empty* output. In the case that Alan identifies of trying to track down where a bug was introduced, a quick svn status check would show you which files were *not* up to da

RE: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Alan W. Irwin
On 2007-10-05 14:28+0100 Atwood, Robert C wrote: >> From: Alan W. Irwin (on cmake list) Yes, [svnversion] is the whole point! It is much easier than using individual revision nubmers for each file. Although not nearly as informative. I just tried svnversion, and it only gives a range of

RE: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Atwood, Robert C
I hope its okay to copy this to Subversion list, as it has veered away from cmake ... Alan said (on Cmake list): > take a concrete but simple example, suppose you have five > files which all > have 3 possibilities (1,2,3) for the revision number. IOW, > each file changed > for each revision. T

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread David Cole
How about "svn status -u" or a filtered version of "svn status -v" ? On 10/5/07, Atwood, Robert C <[EMAIL PROTECTED]> wrote: > I hope its okay to copy this to Subversion list, as it has veered away > from cmake ... > > Alan said (on Cmake list): > > > take a concrete but simple example, suppo

RE: [CMake] Removing configurations.

2007-10-05 Thread Josef Karthauser
> I can add a configuration by using following the instructions here: > > > http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build_modes_wit h_a_custom_made_one_.3F > > How do I go about removing an existing one? Answering my own question, I now see I don't need to. Instead I just defi

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Juan Sanchez
How about: svn info file:///home/juans/svn_repository/svnroot/ | grep '^Revision:' | sed -e 's/^[^0-9]*//' on the repository. Or just: svn info | grep '^Revision:' | sed -e 's/^[^0-9]*//' After doing a svn update, the latest revision on the url seems to be accurate. Unfortunately the number

RE: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Atwood, Robert C
Hi: > How about: > > svn info file:///home/juans/svn_repository/svnroot/ | grep > '^Revision:' > | sed -e 's/^[^0-9]*//' I don't really like the idea of too much shell-filtering for this (or similar) purpose. The necessity of such indicates either there's a feature that people want, that's la

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Juan Sanchez
Ok, My code was for demonstration purposes only. Of course there are more generic ways to process the information, perhaps even using CMake itself. A google search reveals that the last line from "svn status -q " is often used to get the latest revision number. In the search for knowledge, it i

[CMake] Cygwin cmake - Could not find CMAKE_ROOT

2007-10-05 Thread Wheeler, Frederick W (GE, Research)
I'm having trouble running cygwin cmake 2.4.7-2 on two different machines, one running XP, and one Windows 2000. Here's the error: % /bin/cmake CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /bin 39 [main] cmake

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread David Cole
Looks to me like the output of "svn status -u" will give you something like... Status against revision: 1234 ... when everything is up to date with respect to "svn info". And it will give something like... *1001 FileAtPrevRevision.cxx Status against revision: 1234 ... when there is

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Juan Sanchez
Not being a member of the subversion list. And doubting that non cmake members can email this list. Please email us the results of your query to the subversion list. Juan David Cole wrote: > Looks to me like the output of "svn status -u" will give you something like... > Status against revision

ADD_CUSTOM_TARGET question (was RE: [CMake] Version embedding - how to cause a command when make is run?)

2007-10-05 Thread Atwood, Robert C
Hi: I think I've got it (the CMAKE bit, for whichever svn command is eventually used) nearly ... > -Original Message- > From: Alan W. Irwin [mailto:[EMAIL PROTECTED] > Sent: 04 October 2007 18:07 > If that is more information than you want in your executables, then to > answer your ori

RE: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Atwood, Robert C
> -Original Message- > From: Juan Sanchez > Not being a member of the subversion list. And doubting that > non cmake > members can email this list. Please email us the results of > your query Okay, if people don't think it irrelevant to Cmake. I'm sensitive to the fact this discussi

Re: [CMake] Protecting spaces

2007-10-05 Thread Daniel
[EMAIL PROTECTED] wrote: > Hi cmake-team, > i have a question. > in my cmake file i have the following line: > SET(CMAKE_CXX_COMPILER "C:/Program Files/Microsoft/ Visual Studio > 8/VC/ce/bin/x86_arm/cl.exe") > > When i apply nmake afterwards i get this error: > Der Befehl "C:\Program" ist entweder

[CMake] Suppressing -rdynamic

2007-10-05 Thread Gonzalo Garramuño
I'm compiling under Linux and it seems like cmake is automatically adding -rdynamic to my build. This switch is okay for debug builds and open source tools, but for closed source it is a big problem. This switch is unfortunately exposing some unwanted functions in my code, like the licensing fun