Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread James Bigler
Well, it worked just fine with CMake 2.4.6, so wouldn't this be a regression? The reason I haven't upgraded Xcode is that the updater never presented it, and I don't really check for updates. James On Oct 1, 2009, at 3:40 PM, Sean McBride s...@rogue-research.com wrote: James, I'm

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Hendrik Sattler
Zitat von Alan W. Irwin ir...@beluga.phys.uvic.ca: On 2009-10-01 19:51-0400 Bill Lorensen wrote: I think if you specify each arg as a string it should work as expected. -L/usr/lib -lcairo To generalize that idea, I have discovered since my post that if I transform the blank delimited string

Re: [CMake] add_test command in a sub-directory

2009-10-02 Thread romain . jacquet . dev
Selon Nathaniel Waisbrot (Cont ARL/CISD) nathaniel.waisb...@arl.army.mil: Try moving the ENABLE_TESTING() call to the top-level CMakeLists.txt, before any calls to add_subdirectory(). Add_test() can stay where it is. Thanks it works perfectly. But the behavior of ENABLE_TESTING() is

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Alan W. Irwin
On 2009-10-02 08:58+0200 Hendrik Sattler wrote: Zitat von Alan W. Irwin ir...@beluga.phys.uvic.ca: [Use] string(REGEX REPLACE ; CAIRO_LINK_FLAGS_LIST ${CAIRO_LINK_FLAGS}) [to convert a blank-delimited string to a list]. Doing this REGEX REPLACE cannot be the recommended way as that breaks

[CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-02 Thread Romain CHANU
Hi, I am starting to use Eclipse CDT 6.0 / CMake 2.6 for C++ development and I would like to have some information on how to integrate these two software together. I have been reading these pages: http://www.itk.org/Wiki/CMake:Eclipse http://www.itk.org/Wiki/Eclipse_CDT4_Generator However,

[CMake] [CPACK RPM] intermediate directories

2009-10-02 Thread David
Hello, When I generate a RPM with cpack (cmake 2.6), intermediate directories are include in the package : rpm -qpl test.rpm /etc /etc/init.d /etc/init.d/file How can I remove these folders? Thanks! ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Alan W. Irwin
On 2009-10-02 06:26+0200 Andreas Pakulat wrote: On 01.10.09 18:18:24, Alan W. Irwin wrote: This solution obviously reduces the urgency of the concern I expressed about the motivation for escaping blanks for Linux because workarounds like above can always be used. However, I am still curious

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Claudio Bley
Hi. Alan W. Irwin ir...@beluga.phys.uvic.ca writes: On 2009-10-02 08:58+0200 Hendrik Sattler wrote: Zitat von Alan W. Irwin ir...@beluga.phys.uvic.ca: [Use] string(REGEX REPLACE ; CAIRO_LINK_FLAGS_LIST ${CAIRO_LINK_FLAGS}) [to convert a blank-delimited string to a list]. Doing this

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-02 Thread Philip Lowman
On Fri, Oct 2, 2009 at 4:03 AM, Romain CHANU romainch...@gmail.com wrote: Hi, I am starting to use Eclipse CDT 6.0 / CMake 2.6 for C++ development and I would like to have some information on how to integrate these two software together. I have been reading these pages:

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Hendrik Sattler
Zitat von Claudio Bley b_l_...@ml1.net: set(a hello world\\ hello world) message(STATUS a = ${a}) set(a_list ${a}) message(STATUS a_list = ${a_list}) The result is -- a = hello world\ hello world -- a_list = hello world\ hello world So, the real issue here is that your CAIRO_LINK_FLAGS

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-02 Thread Mike Jackson
On Fri, Oct 2, 2009 at 6:51 AM, Philip Lowman phi...@yhbt.com wrote: On Fri, Oct 2, 2009 at 4:03 AM, Romain CHANU romainch...@gmail.com wrote: Hi, I am starting to use Eclipse CDT 6.0 / CMake 2.6 for C++ development and I would like to have some information on how to integrate these two

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-02 Thread Mike Jackson
On Fri, Oct 2, 2009 at 4:03 AM, Romain CHANU romainch...@gmail.com wrote: Hi, I am starting to use Eclipse CDT 6.0 / CMake 2.6 for C++ development and I would like to have some information on how to integrate these two software together. I have been reading these pages:

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-02 Thread Philip Lowman
On Fri, Oct 2, 2009 at 7:38 AM, Mike Jackson mike.jack...@bluequartz.netwrote: I'm confused by the preprocessor statement highlighting in Cmake 2.8? What exactly is being highlighted? Is there a new Text Editor or is this something in CMake-Gui.exe? I'm sorry, that wasn't very clear. What I

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Claudio Bley
Hendrik Sattler p...@hendrik-sattler.de writes: Zitat von Claudio Bley b_l_...@ml1.net: set(a hello world\\ hello world) message(STATUS a = ${a}) set(a_list ${a}) message(STATUS a_list = ${a_list}) The result is -- a = hello world\ hello world -- a_list = hello world\ hello world So,

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-02 Thread Philip Lowman
On Fri, Oct 2, 2009 at 7:43 AM, Mike Jackson mike.jack...@bluequartz.netwrote: On Fri, Oct 2, 2009 at 4:03 AM, Romain CHANU romainch...@gmail.com wrote: Hi, I am starting to use Eclipse CDT 6.0 / CMake 2.6 for C++ development and I would like to have some information on how to

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Hendrik Sattler
Zitat von Claudio Bley b_l_...@ml1.net: But I think that his example is wrong, it should be: set(a -Lfoo -lbar) message(STATUS a = ${a}) set(a_list ${a}) message(STATUS a_list = ${a_list}) Then the result should be -- a = -Lfoo -lbar -- a_list = -Lfoo;-lbar No, should it not. How should

[CMake] QNX Cross compiling give internal error ... ?

2009-10-02 Thread Dr . Stefan Sablatnög
Hi everybody, we have a weird problem here, we want to do a cross compile for QNX on a Win XP System, using the standard QNX supplied toolchain. So I grabbed a toolchain file from the mailing list archive and adapted it to my settings (see attachment). running cmake

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Bill Hoffman
James Bigler wrote: Well, it worked just fine with CMake 2.4.6, so wouldn't this be a regression? The reason I haven't upgraded Xcode is that the updater never presented it, and I don't really check for updates. We are unable to reproduce this... You said you did this: I used

[CMake] Crosscompile: CPack Macos and NSIS

2009-10-02 Thread Canga Marcelo
I am having trouble building a NSIS package running cpack from my mac for windows xp This is what I have on my cross-compile setup in my mac: I have a cross-compile setup working in Macos, mingw-gcc I have cpack - zip running on my mac for windows xp This is what I have in

[CMake] Variables in cmake-scripts

2009-10-02 Thread mereandor
Hi! I have a question regarding cmake-scripts: I have this simple example: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING test variable) INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake EXECUTE_PROCESS( COMMAND /bin/echo

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Michael Jackson
where is TESTVAR ever set? _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Oct 2, 2009, at 10:20 AM,

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Sean McBride
On 10/1/09 11:17 PM, James Bigler said: Well, it worked just fine with CMake 2.4.6, so wouldn't this be a regression? I guess. Or possibly you were lucky it ever worked (as in, relying on undefined behaviour that changed). I have no idea. :) I just found it a little odd that you would be

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread James C. Sutherland
On Oct 2, 2009, at 8:20 AM, merean...@gmail.com merean...@gmail.com wrote: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING test variable) INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake EXECUTE_PROCESS( COMMAND /bin/echo

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Bill Hoffman
Sean McBride wrote: On 10/1/09 11:17 PM, James Bigler said: Well, it worked just fine with CMake 2.4.6, so wouldn't this be a regression? I guess. Or possibly you were lucky it ever worked (as in, relying on undefined behaviour that changed). I have no idea. :) I just found it a little

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Bill Hoffman
James C. Sutherland wrote: On Oct 2, 2009, at 8:20 AM, merean...@gmail.com merean...@gmail.com wrote: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING test variable) INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Michael Jackson
Oops.. Nice Catch. I am going to hazard a guess and say that Make is running a new cmake instance with the install.cmake as its target script to run. This script will have NOTHING to do with the CMakeLists.txt file and therefor will have no idea about variables that are defined in the

Re: [CMake] [CPACK RPM] intermediate directories

2009-10-02 Thread Tyler Roscoe
On Fri, Oct 02, 2009 at 10:46:04AM +0200, David wrote: When I generate a RPM with cpack (cmake 2.6), intermediate directories are include in the package : rpm -qpl test.rpm /etc /etc/init.d /etc/init.d/file How can I remove these folders? I've never used cpack with rpm but don't all

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Sean McBride
On 10/2/09 10:40 AM, Bill Hoffman said: We did change CMake. Before we used to hard code the build archs into the file (i386, ppc, etc.). We now use a variable that Xcode uses, something like $(DEFAULT_ARCH) different name, but you get the idea. If that is not defined for some reason for

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Michael Jackson
I thought there was some code to try and find out where Xcode was installed added to CMake. I think I was the one who helped write it. Whether that got committed to the repo is another question. http://www.itk.org/Bug/view.php?id=6195 Support for non-standard Xcode installation was added to

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Claudio Bley
Hendrik Sattler p...@hendrik-sattler.de writes: Zitat von Claudio Bley b_l_...@ml1.net: But I think that his example is wrong, it should be: set(a -Lfoo -lbar) message(STATUS a = ${a}) set(a_list ${a}) message(STATUS a_list = ${a_list}) Then the result should be -- a = -Lfoo -lbar --

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Bill Hoffman
Sean McBride wrote: On 10/2/09 10:40 AM, Bill Hoffman said: We did change CMake. Before we used to hard code the build archs into the file (i386, ppc, etc.). We now use a variable that Xcode uses, something like $(DEFAULT_ARCH) different name, but you get the idea. If that is not defined

[CMake] CMake 2.8.0 RC 2 ready for testing!

2009-10-02 Thread Bill Hoffman
CMake 2.8.0 RC 2 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 2 - Fix FindQt4 so that QtHelp depends on QtNetwork - Add missing copyright notice to

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Alan W. Irwin
On 2009-10-02 14:45+0200 Hendrik Sattler wrote: Zitat von Claudio Bley b_l_...@ml1.net: But I think that his example is wrong, it should be: set(a -Lfoo -lbar) message(STATUS a = ${a}) set(a_list ${a}) message(STATUS a_list = ${a_list}) Then the result should be -- a = -Lfoo -lbar -- a_list =

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-02 Thread Bill Hoffman
Alan W. Irwin wrote: \ As for your request to explain why the second and third results are identical, I leave that to those who understand how and why CMake has been implemented in the way it has. I am not in that group, which is why I always fall back to simple experiments like above to

[CMake] CTest failed to find the correct drop site

2009-10-02 Thread romain . jacquet . dev
. But the DartConfigurationFile.tcl seems not to be correct: $ grep -i dropsite DartConfiguration.tcl DropSite: public.kitware.com DropSiteUser: DropSitePassword: DropSiteMode: And ctest submit to the wrong dashboard: Site: VE3878 Build name: Linux-c++ Create new tag: 20091002-1636 - Experimental Start processing tests

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread James Bigler
On Fri, Oct 2, 2009 at 9:32 AM, Bill Hoffman bill.hoff...@kitware.com wrote: Sean McBride wrote: On 10/2/09 10:40 AM, Bill Hoffman said: We did change CMake.  Before we used to hard code the build archs into the file (i386, ppc, etc.).   We now use a variable that Xcode uses, something like

[CMake] CMake 2.8rc2 and CHECK_TYPE_SIZE found different results error

2009-10-02 Thread Sean McBride
Hi all, I've just tried building VTK with 2.8rc1 and it gives an error: -- Check size of long CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/ Modules/CheckTypeSize.cmake:102 (MESSAGE): CHECK_TYPE_SIZE found different results, consider setting CMAKE_OSX_ARCHITECTURES or

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Bill Hoffman
James Bigler wrote: On Fri, Oct 2, 2009 at 9:32 AM, Bill Hoffman bill.hoff...@kitware.com wrote: Sean McBride wrote: On 10/2/09 10:40 AM, Bill Hoffman said: We did change CMake. Before we used to hard code the build archs into the file (i386, ppc, etc.). We now use a variable that Xcode

Re: [CMake] CMake 2.8rc2 and CHECK_TYPE_SIZE found different results error

2009-10-02 Thread Brad King
Sean McBride wrote: Hi all, I've just tried building VTK with 2.8rc1 and it gives an error: -- Check size of long CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/ Modules/CheckTypeSize.cmake:102 (MESSAGE): CHECK_TYPE_SIZE found different results, consider setting

[CMake] How to #undef?

2009-10-02 Thread michael kapelko
Hello. add_definitions(-Uflag) does not help. how to #undef then? Thanks. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake

Re: [CMake] How to #undef?

2009-10-02 Thread Tyler Roscoe
On Sat, Oct 03, 2009 at 02:48:00AM +0800, michael kapelko wrote: add_definitions(-Uflag) does not help. how to #undef then? http://www.cmake.org/cmake/help/cmake2.6docs.html#command:remove_definitions tyler ___ Powered by www.kitware.com Visit other

[CMake] [100%] Building CXX object, [ 50%] Building CXX ....

2009-10-02 Thread motes motes
I have a few CMake projects in Ubuntu Linux. When I run 'make' it sometime prints: [100%] Building CXX object and other times: [ 50%] Building CXX what does the percentage mean? ___ Powered by www.kitware.com Visit other Kitware