Re: [CMake] FindBoost problem when cross-compiling

2009-03-30 Thread Kito Berg-Taylor
://www.cmake.org/pipermail/cmake/attachments/20090330/7f25dda2/attachment.htm ___ 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 FAQ at: http

Re: [CMake] cmake 2.6.1: CPACK_NSIS_MODIFY_PATH has no effect

2009-03-30 Thread Markus Israelsson
Hello, I guess you are running the installer as administrator and also tried restarting the operating system after installing. If I remember correctly I sometimes needed to restart the operating system for path changes to take effect with default NSIS script. I do not remember exactly with which

Re: [CMake] cmake 2.6.1: CPACK_NSIS_MODIFY_PATH has no effect

2009-03-30 Thread Eric Noulard
2009/3/29 Stephen Collyer scoll...@netspinner.co.uk: I've created an NSIS based installer by using the Cpack module in a CMakeLists.txt file, and have tried the CPACK_NSIS_MODIFY_PATH setting to add the installation path to PATH automagically. When I run the installer, I see the appropriate

Re: [CMake] From one top level project, is there's a way to produce log files on Linux ( Unix Makefiles) in the same fashion a Windows Visual Studio build does?

2009-03-30 Thread Eric Noulard
2009/3/30 david_bjorn...@agilent.com: From one top level project, is there’s a way to produce log files on Linux ( Unix Makefiles) in the same fashion a Windows Visual Studio build does? For example, on Windows when you run ALL_BUILD, you will generated the following files    

Re: [CMake] cmake 2.6.1: CPACK_NSIS_MODIFY_PATH has no effect

2009-03-30 Thread Bart Janssens
On Sun, Mar 29, 2009 at 8:55 PM, Stephen Collyer scoll...@netspinner.co.uk wrote: When I run the installer, I see the appropriate page (with the add to this user/all users questions) but the path is never added, regardless of which option I select. This is with cmake 2.6.1 and NSIS 2.44,

Re: [CMake] cmake 2.6.1: CPACK_NSIS_MODIFY_PATH has no effect

2009-03-30 Thread Stephen Collyer
2009/3/30 Eric Noulard eric.noul...@gmail.com 2009/3/29 Stephen Collyer scoll...@netspinner.co.uk: I've created an NSIS based installer by using the Cpack module in a CMakeLists.txt file, and have tried the CPACK_NSIS_MODIFY_PATH setting to add the installation path to PATH

[CMake] Cross-compilation linking against host libc

2009-03-30 Thread Adolfo Rodríguez
Hi, I have set up a toolchain file [1] to enable cross-compiling a project. In my current setup, both the host and target environments are binary-compatible (both are x86 and are using gcc's with compatible ABIs). When I generate a cross-compiled executable and run ldd, the paths to libraries

Re: [CMake] WinCE Support

2009-03-30 Thread Clemens Arth
Bill Hoffman schrieb: Andreas Pokorny wrote: Hello, 2009/3/23 Bill Hoffman bill.hoff...@kitware.com: [..] Basically, something that runs the new code. Compile a WinCE project, and somehow verify that it compiled it correctly. So we need a couple of source files that pull in at least some

[CMake] autoheader

2009-03-30 Thread Bill Hoffman
I have seen several requests for an autoheader type function to be added to CMake. I have never used autoheader, but I gather it takes a list of variables and generates a config.h.in file automatically. Does anyone on the list have experience with autoheader? If so, what would a nice CMake

Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-03-30 Thread Brad King
James Bigler wrote: I filed a documentation bug: http://public.kitware.com/Bug/view.php?id=8815 I've committed documentation and updated the bug entry. BTW, is there a particular reason why custom commands are only registered in the directory where they appear? They seem kind of like the

[CMake] add_custom_target and eclipse

2009-03-30 Thread Benoit
Hello, There is a little bug for the generation of eclipse MinGW project in cmake. The thing is the custom targets are not added to the list of make target in the .cproject. For example if I want to add the doc target to generate my documentation such as: ADD_CUSTOM_TARGET(doc ALL COMMAND

[CMake] Bug in if/else/endif in combination with option?

2009-03-30 Thread Marcel Loose
Hi all, I am running cmake version 2.6-patch 2. I stumbled over the following, and I think it is a bug. If I run cmake on this CMakeLists.txt: cmake_minimum_required(VERSION 2.6) set(options fine good bad) #option(fine Fine OFF) #option(good Good OFF) option(bad Bad OFF) foreach(opt

[CMake] [Fwd: Re: autoheader]

2009-03-30 Thread Marcel Loose
Oops, forgot to reply to the mailing list as well. ---BeginMessage--- Hi Bill, This really is a feature I've been missing in CMake as well. As far as autoheader is concerned, I suggest you'd read at least the documentation that comes with it ('info autoheader' on Linux). Basically, what

Re: [CMake] autoheader

2009-03-30 Thread Hendrik Sattler
Zitat von Bill Hoffman bill.hoff...@kitware.com: I have seen several requests for an autoheader type function to be added to CMake. I have never used autoheader, but I gather it takes a list of variables and generates a config.h.in file automatically. Does anyone on the list have experience

[CMake] Copying directory from source tree to binary tree

2009-03-30 Thread Bian Jiang
Copying directory from source tree to binary tree. For example: How to copy www to bin folder. work ├─bin └─src ├─doing │ └─www ├─include └─lib Thanks. -- Bian Jiang Blog: http://www.wifihack.net/ ___ Powered by www.kitware.com

Re: [CMake] Qt 4.5 missing parts of QtGui.framework on OS X

2009-03-30 Thread David Cole
Looking at BundleUtilities.cmake, I would say the best thing to do here would be to add some logic to the copy_resolved_item_into_bundle function that deals with copying an entire framework as a directory copy rather than just copying the library file itself. I will think about what's the best

Re: [CMake] Copying directory from source tree to binary tree

2009-03-30 Thread Adolfo Rodríguez
I would use execute_process and call cmake -E. If you want a deep copy, you can use the copy_directory command. Even better, you could create a symlink (if your platform supports it) with the create_symlink command. The latter can be achieved like this: execute_process(COMMAND ${CMAKE_COMMAND} -E

Re: [CMake] Qt 4.5 missing parts of QtGui.framework on OS X

2009-03-30 Thread Michael Jackson
Just off the top of my head a copy_framework function with some optional parameters to prune the Headers directory or other directories might be nice. For bonus points, prune older versions of the library that are in the framework, ie those NOT pointed to by Versions-Current. Wish I

Re: [CMake] CPack rpm (from cmake 2.6.3) and rpm 4.6.0

2009-03-30 Thread Dmitry Gerasimov
Eric Noulard wrote: Seems like a RedHat specific RPM bugs. Do you think it's rpm = 4.6.0 issue or Fedora 10 one? I think it's rpm issue because Buildroot from spec file ignoring declared release notes of rpm 4.6.0 on main development site and there is no distribution dependent exceptions on

[CMake] How to surround an imported lib with extra flags on link?

2009-03-30 Thread Alexandre Feblot
Hi, I import some libs like this: add_library(${name} ${type} IMPORTED) set_target_properties(${name} PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES ${other_imported_libs} IMPORTED_LOCATION ${file} ) At the end, I link an executable

Re: [CMake] autoheader

2009-03-30 Thread Bill Hoffman
Hendrik Sattler wrote: Zitat von Bill Hoffman bill.hoff...@kitware.com: I have seen several requests for an autoheader type function to be added to CMake. I have never used autoheader, but I gather it takes a list of variables and generates a config.h.in file automatically. Does anyone on

Re: [CMake] autoheader

2009-03-30 Thread Mike Arthur
On Monday 30 March 2009 16:58:47 Bill Hoffman wrote: I think you could do this pretty easily in a function, and a command would not be needed. Anyway, does the API look good? Looks good to me! -- Cheers, Mike Arthur http://mikearthur.co.uk/ ___

[CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Kermit Mei
Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following. But I don't know how to use it in cmake? And, another question: If I use MinGW+Qt, but not M$ VC++, can I use it? Thanks. ---Qt

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Pau Garcia i Quiles
On Mon, Mar 30, 2009 at 6:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following. But I don't know how to use it in cmake? Just add the .rc file to the sources

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread John Drescher
On Mon, Mar 30, 2009 at 12:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following. But I don't know how to use it in cmake? And, another question: If I use

Re: [CMake] Need help with GLOB expression

2009-03-30 Thread Robert Dailey
On Sun, Mar 29, 2009 at 9:31 PM, Bill Hoffman bill.hoff...@kitware.comwrote: Robert Dailey wrote: But it does work! I've tested it several times with much success! I'm not sure what you're saying about *.c, *.cxx, and *.h. Could you explain? Also, I won't have access to a bash shell on

Re: [CMake] Need help with GLOB expression

2009-03-30 Thread Robert Dailey
On Sun, Mar 29, 2009 at 11:46 PM, James Bigler jamesbig...@gmail.comwrote: Why doesn't *.[hi]pp work? It works for me with ls and with file(GLOB): $ touch blah.hpp blah2.ipp $ ls *.[hi]pp blah.hppblah2.ipp Also, if the glob expressions get translated into regular expressions, is

Re: [CMake] Need help with GLOB expression

2009-03-30 Thread Bill Hoffman
Robert Dailey wrote: Just like regex, I don't believe there is an official standard for glob expressions. I think what you should do is implement the common intersection set of functionality just like everyone else does. You're trying to find the right way to do it when a right way has not

Re: [CMake] autoheader

2009-03-30 Thread Hendrik Sattler
Am Montag 30 März 2009 17:58:47 schrieb Bill Hoffman: So, what would the API be? I am thinking something that you just give a list of variables and a file name. set(VARS HAS_A HAS_B HAS_C) set(STRING_VARS STRING_A STRING_B) cmake_autoheader(CMAKEDEFINE_VARS ${VARS}

Re: [CMake] add_custom_target and eclipse

2009-03-30 Thread Alexander Neundorf
On Monday 30 March 2009, Benoit wrote: Hello, There is a little bug for the generation of eclipse MinGW project in cmake. The thing is the custom targets are not added to the list of make target in the .cproject. Which version of cmake ? This has been changed recently, so if you are not

Re: [CMake] Cross-compilation linking against host libc

2009-03-30 Thread Alexander Neundorf
On Monday 30 March 2009, Adolfo Rodríguez wrote: Hi, I have set up a toolchain file [1] to enable cross-compiling a project. In my current setup, both the host and target environments are binary-compatible (both are x86 and are using gcc's with compatible ABIs). When I generate a

Re: [CMake] Bug in if/else/endif in combination with option?

2009-03-30 Thread James Bigler
There may indeed be a bug (at least in the documentation). In CMake 'if' statements are a little different than you might think. From the documentation of 'if' (cmake --help-command if): if(variable STREQUAL string) if(string STREQUAL string) Now with your code you had:

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Kermit Mei
On Mon, 2009-03-30 at 12:17 -0400, John Drescher wrote: On Mon, Mar 30, 2009 at 12:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following. But I don't know how

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Kermit Mei
On Mon, 2009-03-30 at 18:15 +0200, Pau Garcia i Quiles wrote: On Mon, Mar 30, 2009 at 6:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following. But I don't

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Christian Ehrlicher
Kermit Mei schrieb: On Mon, 2009-03-30 at 18:15 +0200, Pau Garcia i Quiles wrote: On Mon, Mar 30, 2009 at 6:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following.

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Kermit Mei
On Mon, 2009-03-30 at 20:17 +0200, Christian Ehrlicher wrote: Kermit Mei schrieb: On Mon, 2009-03-30 at 18:15 +0200, Pau Garcia i Quiles wrote: On Mon, Mar 30, 2009 at 6:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it

[CMake] How to prevent CMake from escaping characters in custom target

2009-03-30 Thread Tron Thomas
I am trying to define an operation in a custom targt that varies on different platforms and take different command line arguments. I tried defining the command using something like: set(Command command_name -flags) Then using it like: set_custom_target(TargetName ${SomeOtherCommand}

Re: [CMake] autoheader

2009-03-30 Thread Philip Lowman
Same here .. Original Message ... On Mon, 30 Mar 2009 17:04:00 +0100 Mike Arthur m...@mikearthur.co.uk wrote: On Monday 30 March 2009 16:58:47 Bill Hoffman wrote: I think you could do this pretty easily in a function, and a command would not be needed. Anyway, does the API look good?

[CMake] Proper way to define a list

2009-03-30 Thread Robert Dailey
Hi, What's the proper way to define a list? Suppose I have 3 words: Foo, Bar, and Baz. I want these 3 strings to be in a list called Stuff. Would I do this: set( Stuff Foo;Bar;Baz ) Is this correct? I don't think this can be right because it runs the risk of mixing semi-colons with spaces to

Re: [CMake] Proper way to define a list

2009-03-30 Thread Alexander Neundorf
On Monday 30 March 2009, Robert Dailey wrote: Hi, What's the proper way to define a list? Suppose I have 3 words: Foo, Bar, and Baz. I want these 3 strings to be in a list called Stuff. Would I do this: set( Stuff Foo;Bar;Baz ) Is this correct? Yes, this is identical to set( Stuff

Re: [CMake] Proper way to define a list

2009-03-30 Thread Bill Hoffman
Alexander Neundorf wrote: On Monday 30 March 2009, Robert Dailey wrote: Hi, What's the proper way to define a list? Suppose I have 3 words: Foo, Bar, and Baz. I want these 3 strings to be in a list called Stuff. Would I do this: set( Stuff Foo;Bar;Baz ) Is this correct? Yes, this is

Re: [CMake] Proper way to define a list

2009-03-30 Thread Robert Dailey
On Mon, Mar 30, 2009 at 2:41 PM, Bill Hoffman bill.hoff...@kitware.comwrote: Alexander Neundorf wrote: On Monday 30 March 2009, Robert Dailey wrote: Hi, What's the proper way to define a list? Suppose I have 3 words: Foo, Bar, and Baz. I want these 3 strings to be in a list called Stuff.

[CMake] how-to get cmake command line after running ccmake

2009-03-30 Thread Darren Weber
Can we automatically extract an equivalent cmake command line after running ccmake? Take care, Darren ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

[CMake] Makefile for checkout from cvs of kitware releases

2009-03-30 Thread Darren Weber
See attached Makefile. For example, to get VTK-5-4-0 by a cvs checkout, do: $ make VTK Note that it has specific path assumptions and it removes any current checkouts in the target paths. It's only doing cvs checkout, using a release tag. It's not initiating a build (that's handled with

[CMake] Setting include directories on a target, not directory.

2009-03-30 Thread Robert Dailey
Hi, I realize there's another post on the list where another user was asking relatively the same question, but this specific issue was never addressed. What I'm trying to do is specify include directories on a per-project basis. I'm avoiding the monolithic shared include directories approach,

Re: [CMake] Proper way to define a list

2009-03-30 Thread Alexander Neundorf
On Monday 30 March 2009, Robert Dailey wrote: I thought there was no explicit string syntax in CMake. After all, you can do this: message( Hello ) using no quotes. Suppose I have a list of files: C:\file 1.txt C:\file 2.txt Notice the space in each one. If I wanted to create a list

Re: [CMake] Copying directory from source tree to binary tree

2009-03-30 Thread Bian Jiang
Thanks Adolfo: It's work fine, I can't create a symlink so use copy_directory. execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory${CMAKE_SOURCE_DIR}/path/to/www ${CMAKE_BINARY_DIR}/path/to/www) 2009/3/30 Adolfo Rodríguez dof...@gmail.com I would use execute_process and call cmake

Re: [CMake] how-to get cmake command line after running ccmake

2009-03-30 Thread Philip Lowman
On Mon, Mar 30, 2009 at 4:09 PM, Darren Weber darren.weber.li...@gmail.comwrote: Can we automatically extract an equivalent cmake command line after running ccmake? Take care, Darren If you're using the Makefile generator you can simply type make edit_cache in your build tree after you've

Re: [CMake] how-to get cmake command line after running ccmake

2009-03-30 Thread James Bigler
On Mon, Mar 30, 2009 at 9:27 PM, Philip Lowman phi...@yhbt.com wrote: On Mon, Mar 30, 2009 at 4:09 PM, Darren Weber darren.weber.li...@gmail.com wrote: Can we automatically extract an equivalent cmake command line after running ccmake? Take care, Darren If you're using the Makefile