Re: [CMake] out of source command line flag

2009-09-05 Thread Hendrik Sattler
Am Freitag 04 September 2009 21:58:02 schrieb Alexander Neundorf: On Sunday 09 August 2009, Roman Shtylman wrote: I have been meaning to try and create such a patch for a while. The idea behind the patch is that you can specify the location of the out of source build directory on the

Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only

2009-09-05 Thread Hendrik Sattler
Am Freitag 04 September 2009 21:51:59 schrieb Alexander Neundorf: On Thursday 27 August 2009, Christian Ehrlicher wrote: Von: Marcel Loose lo...@astron.nl CC: cmake@cmake.org Betreff: Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only Hi

Re: [CMake] Module find error running cmake

2009-09-05 Thread Alexander Neundorf
On Friday 04 September 2009, twf wrote: When trying to install a program that requires cmake I run into the following problem. First off, the install requires the following command: /cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../ During the run, the following error is generated:

Re: [CMake] out of source command line flag

2009-09-05 Thread Alan W. Irwin
On 2009-09-05 09:38+0200 Hendrik Sattler wrote: The problem with how giving the build-dir/source-dir to cmake is currently too much dependent on other conditions: cmake [options] path-to-source cmake [options] path-to-existing-build The first only is true if no CMakeCache.txt exists there.

Re: [CMake] out of source command line flag

2009-09-05 Thread Eric Noulard
2009/9/5 Bill Hoffman bill.hoff...@kitware.com: Alan W. Irwin wrote: On 2009-09-05 09:38+0200 Hendrik Sattler wrote: The problem with how giving the build-dir/source-dir to cmake is currently too much dependent on other conditions:  cmake [options] path-to-source  cmake [options]

Re: [CMake] out of source command line flag

2009-09-05 Thread Eric Noulard
Continued 2) In the same way I did file a bug report for being able to enforce out-of-source if necessary. http://public.kitware.com/Bug/view.php?id=6672 2009/9/5 Bill Hoffman bill.hoff...@kitware.com: I use this all the time, and so do lots of people that I know. They do this:

Re: [CMake] help with variable usage in target_link_libraries

2009-09-05 Thread Alexander Neundorf
On Monday 31 August 2009, Eike Kroemer wrote: Hi Eric, Variable values shoud be retrieve with curly brace, i.e. $LIBS -- ${LIBS} Yick, I had done that but not cited it correctly in my mail, sorry about that. Then when you have a list of something you usually use LIST(APPEND

Re: [CMake] exit_failure

2009-09-05 Thread Alexander Neundorf
On Saturday 29 August 2009, Alex H wrote: My problem is that in my executable test cpp code, the code may return a cpp EXIT_FAILURE macro. Problem is how can I use the cpp macro inside the set_tests_properties regex arguments? Please provide more information. ...just guessing: test.cpp:

Re: [CMake] Compiled file cannot be executed

2009-09-05 Thread Alexander Neundorf
On Thursday 27 August 2009, Michael Wild wrote: On 27. Aug, 2009, at 0:58, Swaroop Ramachandra wrote: Hi, I'm trying to do the following in my CMake file: 1. Generate a xyz.txt file 2. Compile a generate.c file to give out a generate binary in my bin directory. 3. Execute the

Re: [CMake] CMake Python support

2009-09-05 Thread Alexander Neundorf
On Wednesday 26 August 2009, Matt McCormick wrote: Andreas Pakulat ap...@... writes: On 19.08.09 08:34:26, Philip Lowman wrote: Speaking of the existing FindPython* scripts they do not support v3.0 yet. Is there a need to maintain support for picking 2.x if two versions of python are

Re: [CMake] out of source command line flag

2009-09-05 Thread Alan W. Irwin
On 2009-09-05 10:59-0400 Bill Hoffman wrote: Alan W. Irwin wrote: On 2009-09-05 09:38+0200 Hendrik Sattler wrote: The problem with how giving the build-dir/source-dir to cmake is currently too much dependent on other conditions: cmake [options] path-to-source cmake [options]

Re: [CMake] Finding Qt4 binaries under Windows

2009-09-05 Thread Alexander Neundorf
On Saturday 22 August 2009, Sebastian Schuberth wrote: On 21.08.2009 22:22, Michael Jackson wrote: YOU are the one who compiled it in C:\Qt\4.5.1 according to your original post. I am simply making you aware of the error. Well, I specified C:/Qt instead of C:/Qt/4.5.1 on purpose. The point

Re: [CMake] out of source command line flag

2009-09-05 Thread Hendrik Sattler
Am Samstag 05 September 2009 16:59:09 schrieb Bill Hoffman: I use this all the time, and so do lots of people that I know. They do this: cmake . I also use this. But being able to force a specific build dir (instead of cmake trying to be smart) may be a good thing, like ignoring the

Re: [CMake] out of source command line flag

2009-09-05 Thread Alexander Neundorf
On Saturday 05 September 2009, Eric Noulard wrote: Continued ... CMake may guess which one is the build tree using this algorithm. 1) If there is a CMakeCache.txt in the dir then this is a build tree 2) If the path does not exists then this is a to be created build tree error cases are:

Re: [CMake] Unknown names of output files - How to add the dependency?

2009-09-05 Thread Alexander Neundorf
On Thursday 03 September 2009, Swaroop Ramachandra wrote: Hi, I have a question regarding the ADD_CUSTOM_COMMAND. I have an input file which is generated on the fly. My ADD_CUSTOM_COMMAND executes a binary file which takes this input file. My output is a set of files whose names are based on

Re: [CMake] CHECK_CXX_SOURCE_COMPILES attempts linking

2009-09-05 Thread Alexander Neundorf
On Thursday 03 September 2009, John Smith wrote: It seems that CHECK_CXX_SOURCE_COMPILES attempts to link the object files into an executable: Yes. Sometimes having it only compile but not link would be nice, but that's not the case. You can specifiy libraries to link to, so it should be

Re: [CMake] Finding X11 fails under OS X...

2009-09-05 Thread Alexander Neundorf
On Thursday 03 September 2009, Georgios Petasis wrote: ... No I don't. In fact there is only a .la file all X11 libraries, besides the version-coded .dylib files. The only places that there .dylib files without version (along with the versioned ones) is inside the SDK folders, which are not

Re: [CMake] out of source command line flag

2009-09-05 Thread Eric Noulard
2009/9/5 Alexander Neundorf a.neundorf-w...@gmx.net: On Saturday 05 September 2009, Eric Noulard wrote: [...] E3) One gives a build tree which does not correspond to the given source tree This is easy to check because CMakeCache.txt contains                  PROJECT_SOURCE_DIR       If this

Re: [CMake] [PATCH] slightly modify cache variable behaviour, Was: Re: option() behavior

2009-09-05 Thread Alexander Neundorf
On Sunday 28 June 2009, Alexander Neundorf wrote: On Tuesday 12 May 2009, Philip Lowman wrote: On Mon, May 11, 2009 at 4:53 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Monday 11 May 2009, Bill Hoffman wrote: Alexander Neundorf wrote: On Monday 11 May 2009,

Re: [CMake] Unknown origin of compiler flag on Cray

2009-09-05 Thread Alexander Neundorf
On Thursday 27 August 2009, Will Dicharry wrote: Hi All, I am experiencing a strange problem on Cray XT machines running CNL compute nodes with the PGI compiler. It appears that something is adding the flags -Bstatic -Bdynamic (in that order) to the link line. It looks like the Linux.cmake

Re: [CMake] Get all required shared libs from a target

2009-09-05 Thread Alexander Neundorf
On Friday 28 August 2009, Michael Jackson wrote: If you pull the boost 1.39.0 sources there is an experimental CMake based build system. In those cmake files the developers have somehow figured out how to do what you want. For a given library, you can get all the dependencies. Maybe you can

[CMake] macport issue?

2009-09-05 Thread Bill Hoffman
I found this with a google alert: http://www.nabble.com/-MacPorts---21120:-Cmake-fails-to-sync--or-bootstrap--Not-sure-what-it-trying-to-say-sorry.-td25310279.html Is there anyone on this list that is having this problem with CMake? -Bill ___

Re: [CMake] macport issue?

2009-09-05 Thread S Roderick
On Sep 5, 2009, at 15:18 , Bill Hoffman wrote: I found this with a google alert: http://www.nabble.com/-MacPorts---21120:-Cmake-fails-to-sync--or-bootstrap--Not-sure-what-it-trying-to-say-sorry.-td25310279.html Is there anyone on this list that is having this problem with CMake? I recently

Re: [CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-09-05 Thread Alexander Neundorf
On Monday 24 August 2009, John Smith wrote: On Aug 24, 2009, at 12:48 PM, Tyler Roscoe wrote: On Sun, Aug 23, 2009 at 09:03:22PM -0400, John Smith wrote: I am using the following test case in an attempt to add a custom command to build an assembly file. The assembly file should be

Re: [CMake] dependency in custom command?

2009-09-05 Thread Alexander Neundorf
On Friday 28 August 2009, King, Steven R wrote: You don't need to do this. Since my_module is a CMake target, you can just use my_module instead of ${SO_LOCATION} in the custom_command below and CMake will figure out where the .so is on the disk Hi Tyler -- Substituting my_module did not

Re: [CMake] dependency in custom command?

2009-09-05 Thread Alexander Neundorf
On Friday 28 August 2009, King, Steven R wrote: Hello List, I'm new to cmake and liking it a lot. I'm using cmake 2.6.3 on Linux. I'm building a dynamically loadable module and an executable to test it. Each lives in a different directory. My test program needs to know the location of the

Re: [CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-09-05 Thread John Smith
Alexander Neundorf wrote: On Monday 24 August 2009, John Smith wrote: [...] I have tried doing that. [...] So you have also hit that bug ? http://public.kitware.com/Bug/view.php?id=8392 Interesting, did not know of it. IMHO, I believe that the C compiler (or C compiler driver) should be

[CMake] macosx fix bundle problems

2009-09-05 Thread Petr Vanek
hi all, I have a Qt4 application with bundle build support taken from cmake wiki example. When I run deploy phase with make install, the correct structure is created in CMAKE_INSTALL_PREFIX. But it looks like cmake's fixup_bundle function from BundleUtilities does its job only