Re: [CMake] Improvements for macro CMAKE_DEPENDENT_OPTION?

2011-04-25 Thread SF Markus Elfring
Hello, Does the macro CMAKE_DEPENDENT_OPTION contain any open issues in its implementation that should be changed? http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeDependentOption.cmake;hb=2cde67a78123a4e59390f7aa2030ea8ff9e206d2 Regards, Markus

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Hertling
On 04/24/2011 04:56 PM, Campbell Barton wrote: 2011/4/23 YangXi jianding...@msn.com: In my program, I have several pictures and plain-text data files. Usually in a unix system, they should be placed on /usr/share/my_program/some_place. How could I define those files in CMakeLists, and make

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Wild
On 04/25/2011 12:48 PM, Michael Hertling wrote: On 04/24/2011 04:56 PM, Campbell Barton wrote: 2011/4/23 YangXi jianding...@msn.com: In my program, I have several pictures and plain-text data files. Usually in a unix system, they should be placed on /usr/share/my_program/some_place. How could

Re: [CMake] How to use PNG instead of BMP for NSIS installer generator?

2011-04-25 Thread David Cole
Have you tried it? What were the results? This is more of a question for the NSIS community, I think. On Sat, Apr 23, 2011 at 12:06 PM, NoRulez noru...@me.com wrote: Hello, is it possible to use *.PNG images instead of the BMP images for header/sidebar? Thanks in advance Best

Re: [CMake] OS X and getline ?

2011-04-25 Thread Eric Noulard
2011/4/25 AJ ONeal coola...@gmail.com: What's the preferred solution to the OS X getline problem (meaning that it doesn't exist in OS X's libc) when using CMake? (Don't use getline isn't an option) I don't think this is a CMake question. If you need getline on OS X then may be you'll have to

Re: [CMake] OS X and getline ?

2011-04-25 Thread Michael Jackson
For the CMake side of things you can actually check for the function during the initial cmake checks: INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) CHECK_FUNCTION_EXISTS(getline HAS_GETLINE) This will perform the check and put the result into the variable HAS_GETLINE. The easiest

Re: [CMake] OS X and getline ?

2011-04-25 Thread j s
Hello, I did a quick search for a bsd equivalent and found this: http://doubletalkin.blogspot.com/2008/08/fgetln-replacement-for-getline-in-bsd.html To use this you would probably have to use the appropriate include guards or use a macro to redefine the name of the function. Regards, Juan On

Re: [CMake] SuperBuild whoes

2011-04-25 Thread Michael Hertling
On 04/21/2011 03:44 PM, Michael Wild wrote: On 04/21/2011 02:45 PM, David Cole wrote: On Thu, Apr 21, 2011 at 4:30 AM, Michael Wild them...@gmail.com mailto:them...@gmail.com wrote: On 04/21/2011 06:48 AM, Michael Wild wrote: Hi all I'm trying to set up a SuperBuild

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Hertling
On 04/25/2011 01:53 PM, Michael Wild wrote: On 04/25/2011 12:48 PM, Michael Hertling wrote: On 04/24/2011 04:56 PM, Campbell Barton wrote: 2011/4/23 YangXi jianding...@msn.com: In my program, I have several pictures and plain-text data files. Usually in a unix system, they should be placed

Re: [CMake] SuperBuild whoes

2011-04-25 Thread Michael Wild
On 04/25/2011 04:51 PM, Michael Hertling wrote: [...] I also solved my installation problem. By having all sub-projects install into a common prefix, and thanks to the wonders of RPATH and install_name which can handle relative paths and thanks to the fact that install(EXPORT) generated files

[CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
If I have a custom command: add_custom_command(OUTPUT myfile.out) Then I add that file to the target: add_executable(mytarget main.cpp myfile.out) If I do a 'make help' I get rules for main.o, but none for myfile.out. Is there something I can add to create a helper makefile target? Thanks,

Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread Eric Noulard
2011/4/25 James Bigler jamesbig...@gmail.com: If I have a custom command: add_custom_command(OUTPUT myfile.out) Then I add that file to the target: add_executable(mytarget main.cpp myfile.out) If I do a 'make help' I get rules for main.o, but none for myfile.out.  Is there something I

Re: [CMake] OS X and getline ?

2011-04-25 Thread AJ ONeal
Thank you Mike and Eric, Mike, This is the level of detail that I was hoping for in regards to CMake. In order to get it to compile I had copy/pasted a getline substitute. Now I'll go back and try to configure CMake correctly so that it works on both OS X and Linux. Eric, The second link you

Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
On Mon, Apr 25, 2011 at 11:42 AM, Eric Noulard eric.noul...@gmail.comwrote: 2011/4/25 James Bigler jamesbig...@gmail.com: If I have a custom command: add_custom_command(OUTPUT myfile.out) Then I add that file to the target: add_executable(mytarget main.cpp myfile.out) If I do a

[CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Clifford Yapp
I'm trying to generate both source tarballs and binary packages using CPack, and I'm at something of a loss as to how to achieve the following: I want the binaries (RPM, DEB, etc.) to respect the CMAKE_INSTALL_PREFIX. I want the source tarballs to expand into their directory like a standard

Re: [CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Eric Noulard
2011/4/25 Clifford Yapp cliffy...@gmail.com: I'm trying to generate both source tarballs and binary packages using CPack, and I'm at something of a loss as to how to achieve the following: I want the binaries (RPM, DEB, etc.) to respect the CMAKE_INSTALL_PREFIX.  I want the source tarballs

Re: [CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Clifford Yapp
Eric, Thanks - that looks like it will do the trick, testing now. Is there a bug report somewhere proposing using CMake-level per-generator variables to control these things? Cheers, CY ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Eric Noulard
2011/4/25 Clifford Yapp cliffy...@gmail.com: Eric, Thanks - that looks like it will do the trick, testing now.  Is there a bug report somewhere proposing using CMake-level per-generator variables to control these things? AFAIK there aren't any. Now adding this for ALL CPack generators would

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Wild
On 04/25/2011 05:03 PM, Michael Hertling wrote: On 04/25/2011 01:53 PM, Michael Wild wrote: On 04/25/2011 12:48 PM, Michael Hertling wrote: On 04/24/2011 04:56 PM, Campbell Barton wrote: 2011/4/23 YangXi jianding...@msn.com: In my program, I have several pictures and plain-text data files.

Re: [CMake] BundleUtilities and super-build

2011-04-25 Thread Michael Wild
On 04/23/2011 12:46 PM, Michael Wild wrote: Hi all I'm trying to use BundleUtilities with MSVC 9 to install the required Qt4 DLL's of the GUI sub-project into a common prefix in the super-build binary directory. The process fails with the (abbreviated) output at the end of this message.

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-04-25 Thread Brad King
On 04/05/2011 12:13 PM, Manuel Klimek wrote: On Tue, Apr 5, 2011 at 6:19 AM, Brad King brad.k...@kitware.com wrote: On 04/05/2011 08:33 AM, Brad King wrote: On 04/04/2011 12:01 PM, Manuel Klimek wrote: Done. Thanks! While running the test on more platforms I ran into a problem. On

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-04-25 Thread Manuel Klimek
On Mon, Apr 25, 2011 at 8:27 AM, Brad King brad.k...@kitware.com wrote: On 04/05/2011 12:13 PM, Manuel Klimek wrote: On Tue, Apr 5, 2011 at 6:19 AM, Brad King brad.k...@kitware.com wrote: On 04/05/2011 08:33 AM, Brad King wrote: On 04/04/2011 12:01 PM, Manuel Klimek wrote: Done. Thanks!

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-04-25 Thread Brad King
On 04/25/2011 11:54 AM, Manuel Klimek wrote: Is just putting IF(UNIX) ... around all the stuff enough for that? It's not just the test. The C++ implementation cannot handle all generators. It should be taught to run only for generators where it is known to work. Perhaps it can check a value

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-04-25 Thread Manuel Klimek
On Mon, Apr 25, 2011 at 8:59 AM, Brad King brad.k...@kitware.com wrote: On 04/25/2011 11:54 AM, Manuel Klimek wrote: Is just putting IF(UNIX) ... around all the stuff enough for that? It's not just the test.  The C++ implementation cannot handle all generators.  It should be taught to run

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-04-25 Thread Brad King
On 04/25/2011 12:06 PM, Manuel Klimek wrote: On Mon, Apr 25, 2011 at 8:59 AM, Brad King brad.k...@kitware.com wrote: On 04/25/2011 11:54 AM, Manuel Klimek wrote: Is just putting IF(UNIX) ... around all the stuff enough for that? It's not just the test. The C++ implementation cannot handle

[Cmake-commits] CMake branch, next, updated. v2.8.4-1476-g2b62ff8

2011-04-25 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 2b62ff896c16484ef207b71ddfd9e0ffad6ad8a6 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-396-g667ff40

2011-04-25 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 667ff4023fd2be9dd12f75b6c4c47fd3249abe23 (commit) from