Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread Jeroen Dierckx
On Wed, Sep 30, 2009 at 8:32 AM, wrote: > Hi, > > I've seen a previous discussion on this subject, but unfortunately, none of > the > given solutions (as described on > http://www.cmake.org/Wiki/CMake:VariablesListsStrings) seem to work in my > case. > > I'm using CMake to generate an XML config

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread fred . antares
Quoting Jeroen Dierckx : > On Wed, Sep 30, 2009 at 8:32 AM, wrote: > > > Hi, > > > > I've seen a previous discussion on this subject, but unfortunately, none of > > the > > given solutions (as described on > > http://www.cmake.org/Wiki/CMake:VariablesListsStrings) seem to work in my > > case. > >

Re: [CMake] Trouble with parallel builds for targets created by add_executable, target_link_libraries, and add_library

2009-09-30 Thread Marcel Loose
On Tue, 2009-09-29 at 19:46 -0400, Bill Hoffman wrote: > Alan W. Irwin wrote: > > On 2009-09-29 16:36-0400 Bill Hoffman wrote: > > > >> make -j N is only supported with the all target. > > > > How difficult would it be to implement parallel build support for more than > > just the "all" target? N

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread Marcel Loose
On Wed, 2009-09-30 at 09:28 +0200, fred.anta...@free.fr wrote: > Quoting Jeroen Dierckx : > > > On Wed, Sep 30, 2009 at 8:32 AM, wrote: > > > > > Hi, > > > > > > I've seen a previous discussion on this subject, but unfortunately, none > > > of > > > the > > > given solutions (as described on > >

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread fred . antares
Quoting Marcel Loose : > On Wed, 2009-09-30 at 09:28 +0200, fred.anta...@free.fr wrote: > > Quoting Jeroen Dierckx : > > > > > On Wed, Sep 30, 2009 at 8:32 AM, wrote: > > > > > > > Hi, > > > > > > > > I've seen a previous discussion on this subject, but unfortunately, > none of > > > > the > > >

Re: [CMake] Problems with ";" turning into spaces in add_command

2009-09-30 Thread Hendrik Sattler
Zitat von "Dixon, Shane" : I'm trying to get Docbook working in Windows XP with saxon 6.5. I can get almost all the way to the last step and the command dies. At the bottom of this e-mail is the relevant code. Here is what the message() call prints: May you want to try the cmake scr

[CMake] xlC / HAVE_GETHOSTBYNAME_R_6 (Was Re: CMake 2.8.0 RC 1 ready for testing!)

2009-09-30 Thread Mathieu Malaterre
On Tue, Sep 29, 2009 at 11:34 PM, Brad King wrote: > Mathieu Malaterre wrote: >> On Fri, Sep 25, 2009 at 10:07 PM, Bill Hoffman >> wrote: >>> I am happy to announce that CMake 2.8.0 has entered the beta stage! You >>> can find the source and binaries here: http://www.cmake.org/files/v2.8/. >>> >

[CMake] Feature request for link_directories

2009-09-30 Thread Anatoly Shirokov
According to the documentation include_directories has the following syntax: include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...) Especially AFTER and BEFORE are very usefull, when the search order is important. I was suprised when I did not find the AFTER and BEFORE in the link_directo

Re: [CMake] CMAKE_SYSTEM not available

2009-09-30 Thread Martin Apel
I had a similar issue with CMAKE_SYSTEM_NAME. I have put platform specific default settings into files called "Linux.cmake" and "Windows.cmake", where the file is included as INCLUDE (${CMAKE_SYSTEM_NAME}.cmake) However it's not possible to initialize some variables, because this include stateme

[CMake] 'make' compiles old code ?

2009-09-30 Thread motes motes
I have just created a build folder for an application using ITK with CMake on Ubuntu 9.04. I have then entered the build folder from a terminal and typed 'make'. I then get a list of errors: ... home/mort/lib/compute_metric.h:22: error: expected `;' before ‘transform’ home/mort/lib/compute_metric

Re: [CMake] 'make' compiles old code ?

2009-09-30 Thread motes motes
Nevermind worked on a wrong copy, it now works! On Wed, Sep 30, 2009 at 1:00 PM, motes motes wrote: > I have just created a build folder for an application using ITK with > CMake on Ubuntu 9.04. > > I have then entered the build folder from a terminal and typed 'make'. > I then get a list of

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread David Cole
Are you using "FILE(WRITE"...? What version of CMake? This should work. Send the CMake code snippet you are using to try to do this so that we can see what might be wrong. If using older CMake (2.4.something) then you may have to do: set(DOLLAR "$") file(WRITE blah "${DOLLAR}{varNameHere}")

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread fred . antares
The problem is I'm working on quite a big project, and it was not written initially by me. I don't know about the "FILE(WRITE", but here's what I'm doing: - In the CMakelists, I'm calling a macro with one of the parameters being what I want in my attribute (in that case "${do_not_evaluate}"). - Thi

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread David Cole
so if you have this: macro(blah arg1) message("==${arg1}==") endmacro(blah) blah("${do_not_evaluate}") blah("\${do_not_evaluate}") blah("\\\${do_not_evaluate}") you should see: ==${do_not_evaluate}== I'm using CMake 2.6.4 to get these results. I think 2.4.8 should give you

Re: [CMake] How to not evaluate variable names ?

2009-09-30 Thread fred . antares
Ok, maybe I didn't escape enough when testing... Anyway, I've just gone with the code way, tagging my variable and replacing it in my custom generator in that specific case, and it's working nicely, so that will do for now... And moreover, it saves me from simplifying and posting code, 'cause it's

Re: [CMake] xlC / HAVE_GETHOSTBYNAME_R_6 (Was Re: CMake 2.8.0 RC 1 ready for testing!)

2009-09-30 Thread Brad King
Mathieu Malaterre wrote: >> /opt/ibmcmp/vacpp/9.0/bin/cc -DHAVE_GETHOSTBYNAME_R_5 -o >> CMakeFiles/cmTryCompileExec.dir/CurlTests.c.o -c >> "/home/mmalater/Dashboards/My >> Tests/CMakeXLC/Utilities/cmcurl/CMake/CurlTests.c" > "/home/mmalater/Dashboards/My > Tests/CMakeXLC/Utilities/cmcurl/

Re: [CMake] Problems with ";" turning into spaces in add_command

2009-09-30 Thread Dixon, Shane
Hendrik, I actually am using your scripts, but on Windows XP and that's where I'm having the troubles. Everything works except that last step. I print out the XSL_TRANSFORM_COMMAND right before add_custom_command: -- XSL_TRANSFORM_COMMAND = C:/WINDOWS/system32/java.exe;-cp;:C:/opt/saxon6-5-5

Re: [CMake] ctest 2.8rc1 not timing out stuck tests? (Mac OS X 10.6.1)?

2009-09-30 Thread Sean McBride
On 9/29/09 3:36 PM, Bill Hoffman said: >> 116/1144 Test #116: >> itkStatisticsAlgorithmTest .. >> ...***Exception: SegFault29491.00 sec >> >> 8 hours is more than my timeout for sure! :) >> >> If I rerun the test it passes quickly. :( >> >> Anyone seen t

Re: [CMake] Problems with ";" turning into spaces in add_command

2009-09-30 Thread Hendrik Sattler
Zitat von "Dixon, Shane" : I actually am using your scripts, but on Windows XP and that's where I'm having the troubles. Everything works except that last step. I print out the XSL_TRANSFORM_COMMAND right before add_custom_command: -- XSL_TRANSFORM_COMMAND = C:/WINDOWS/system32/java

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-09-30 Thread Tanguy Krotoff
I have the exact same problem. I have several projects and I want to statically link one of them with the Visual C++ libraries. i.e I want to replace the Visual C++ /MD flag by /MT only in this specific projet, not the others. > Can you do something like this: > > set (CMAKE_CXX_FLAGS_ORIG CMAKE_

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-09-30 Thread Tyler Roscoe
Wow, nice bump. On Wed, Sep 30, 2009 at 05:58:50PM +0200, Tanguy Krotoff wrote: > I have several projects and I want to statically link one of them with > the Visual C++ libraries. > i.e I want to replace the Visual C++ /MD flag by /MT only in this > specific projet, not the others. > > > Can you

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-09-30 Thread Tanguy Krotoff
On Wed, Sep 30, 2009 at 6:02 PM, Tyler Roscoe wrote: > Wow, nice bump. :) have searched for my problem, found this thread. That's why sometimes web forums are more suitable. > On Wed, Sep 30, 2009 at 05:58:50PM +0200, Tanguy Krotoff wrote: >> I have several projects and I want to statically link

Re: [CMake] Problems with ";" turning into spaces in add_command

2009-09-30 Thread Hendrik Sattler
Am Mittwoch 30 September 2009 16:22:25 schrieb Dixon, Shane: > Any suggestions on how you got this working in Windows XP? Don't you get > parsing errors from java.exe? If I change the ":" to ";" in the above > command for the -cp argument, everything works. Try the patch at http://gitorious.or

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-09-30 Thread Tyler Roscoe
On Wed, Sep 30, 2009 at 06:18:04PM +0200, Tanguy Krotoff wrote: > project(rimes_http_request) > > # Statically link with Visual C++ libraries > if (MSVC) > foreach (MODE "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO") > string(REPLACE "/MD" "/MT" TMP "${CMAKE_C_FLAGS${MODE

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-09-30 Thread Tanguy Krotoff
On Wed, Sep 30, 2009 at 8:08 PM, Tyler Roscoe wrote: > So the first change, where you change from /MD to /MT, does work, but > the second change, where you change /MT back to /MD, does not work? Exactly > When I do this trick, I don't mess with the value in the cache; I just > change CMAKE_C_FLA

Re: [CMake] how to set per-configuration xcode attributes

2009-09-30 Thread Jesse Beder
On Sat, Sep 26, 2009 at 11:30 PM, Jesse Beder wrote: > I'm using the following syntax to set certain build settings on a > per-configuration basis: > > set(CMAKE_CONFIGURATION_TYPES Debug Release Distribution) > set(CMAKE_CXX_FLAGS_DISTRIBUTION "-Os") > > and also setting specific Xcode properties

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-09-30 Thread Tyler Roscoe
On Wed, Sep 30, 2009 at 08:17:43PM +0200, Tanguy Krotoff wrote: > On Wed, Sep 30, 2009 at 8:08 PM, Tyler Roscoe wrote: > > So the first change, where you change from /MD to /MT, does work, but > > the second change, where you change /MT back to /MD, does not work? > > Exactly > > > When I do thi

Re: [CMake] Trouble with parallel builds for targets c reated by add_executable, target_link_lib raries, and add_library

2009-09-30 Thread Alexander Neundorf
On Wednesday 30 September 2009, Marcel Loose wrote: > On Tue, 2009-09-29 at 19:46 -0400, Bill Hoffman wrote: > > Alan W. Irwin wrote: > > > On 2009-09-29 16:36-0400 Bill Hoffman wrote: > > >> make -j N is only supported with the all target. > > > > > > How difficult would it be to implement paralle

Re: [CMake] Problems with ";" turning into spaces in add_command

2009-09-30 Thread Dixon, Shane
Hendrik, That fixed it. Thank you! -- Shane -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Wednesday, September 30, 2009 12:00 PM To: cmake@cmake.org Cc: Dixon, Shane Subject: Re: [CMake] Problems with ";" turning in

Re: [CMake] Trouble with parallel builds for targets c reated by add_executable, target_link_libraries , and add_library

2009-09-30 Thread Marcel Loose
On Wednesday 30 September 2009 21:16:10 Alexander Neundorf wrote: > On Wednesday 30 September 2009, Marcel Loose wrote: > > On Tue, 2009-09-29 at 19:46 -0400, Bill Hoffman wrote: > > > Alan W. Irwin wrote: > > > > On 2009-09-29 16:36-0400 Bill Hoffman wrote: > > > >> make -j N is only supported wit

[CMake] multiple languages with single target

2009-09-30 Thread Chris Roberts
Hello, I am trying to implement support for a new language compiler but I'm having difficulty with link phase. The problem is that I need to split the link step into two different commands and filter the objects that are sent to each linker. Currently cmake is generating a command like: c++ -o

Re: [CMake] Ctest and CxxTest

2009-09-30 Thread Philip Lowman
On Mon, Sep 21, 2009 at 2:22 PM, Wojciech Migda wrote: > Daniel Blezek pisze: > > We tackled this using a "hack-ish" CMake command for Google Tests > > that found all our tests in the source code, and generated CTest > > commands for them. You could do a similar thing on a test suite. > > Details