Re: [cmake-developers] Bug fix requests for the *next* release of CMake...

2010-11-05 Thread Marcel Loose
Hi David, I've got one more, one that I just entered in Mantis. #11410 - Result of IF(LIST) is inconsistent Regards, Marcel Loose. ___ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-11-05 Thread Marcel Loose
regards, Marcel Loose. ___ 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://www.cmake.org/Wiki/CMake_FAQ Follow

Re: [CMake] [cmake-developers] Bug fix requests for the *next* release of CMake...

2010-11-05 Thread Marcel Loose
Hi David, I've got one more, one that I just entered in Mantis. #11410 - Result of IF(LIST) is inconsistent Regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

Re: [CMake] How to work around broken Find module

2010-11-01 Thread Marcel Loose
Hi Alex, On Sun, 2010-10-31 at 10:20 +0100, Alexander Neundorf wrote: On Thursday 28 October 2010, Marcel Loose wrote: Hi all, What is the best way to work around a broken Find module? A technique I've used up till now is to wrap the broken module in a module with the same name

[CMake] How to work around broken Find module

2010-10-28 Thread Marcel Loose
? Best regards, Marcel Loose. ___ 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://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-27 Thread Marcel Loose
On Tue, 2010-10-26 at 11:46 +0200, Marcel Loose wrote: On Mon, 2010-10-25 at 17:30 +0200, Michael Wild wrote: On 25. Oct, 2010, at 17:14 , Tyler Roscoe wrote: On Mon, Oct 25, 2010 at 04:54:41PM +0200, Michael Wild wrote: On 25. Oct, 2010, at 16:45 , Marcel Loose wrote: Wouldn't

Re: [CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-27 Thread Marcel Loose
On Wed, 2010-10-27 at 11:00 +0200, Michael Wild wrote: On 27. Oct, 2010, at 9:54 , Marcel Loose wrote: On Tue, 2010-10-26 at 11:46 +0200, Marcel Loose wrote: On Mon, 2010-10-25 at 17:30 +0200, Michael Wild wrote: On 25. Oct, 2010, at 17:14 , Tyler Roscoe wrote: On Mon, Oct 25, 2010

Re: [CMake] Beginner's Question: Organizing Projects

2010-10-27 Thread Marcel Loose
to grow extensively. And, worse, that file will share implementation details of some lower-level directory, requiring package XYZ. So, for larger projects, I would choose the seconds option. Hope this helps. Best regards, Marcel Loose. ___ Powered

Re: [CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-26 Thread Marcel Loose
On Mon, 2010-10-25 at 16:54 +0200, Michael Wild wrote: On 25. Oct, 2010, at 16:45 , Marcel Loose wrote: Hi all, I noticed that 'ctest -DExperimentalBuild' returns with an exit status 0, even if compiler errors occur. I think that is caused by the fact that 'make -i' is used. The -i

Re: [CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-26 Thread Marcel Loose
On Mon, 2010-10-25 at 17:30 +0200, Michael Wild wrote: On 25. Oct, 2010, at 17:14 , Tyler Roscoe wrote: On Mon, Oct 25, 2010 at 04:54:41PM +0200, Michael Wild wrote: On 25. Oct, 2010, at 16:45 , Marcel Loose wrote: Wouldn't it make more sense to use 'make -k' instead? Some weeks ago

[CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-25 Thread Marcel Loose
' instead? The -k|--keep-going option tries to build as much as possible, but won't try to build targets that depend on sources that failed to compile. Furthermore, and more importantly, 'make -k' will return with an exit status unequal to 0, if compiler errors occurred. Best regards, Marcel Loose

[CMake] CTest's Build exit status

2010-10-21 Thread Marcel Loose
? The keep going option tries to build as much as possible, but won't try to build targets that depend on sources that failed to compile. Furthermore, and more importantly, 'make -k' will return with an exit status unequal to 0, if compiler errors occurred. Best regards, Marcel Loose

Re: [CMake] CTest: Weird behaviour

2010-10-20 Thread Marcel Loose
On Tue, 2010-10-19 at 08:24 -0400, Bill Hoffman wrote: On 10/19/2010 4:21 AM, Marcel Loose wrote: Hi all, I stumbled upon IMHO weird behaviour of CTest. It seems that compilation errors are not picked up, somehow. Look at the output of a run of ctest -V -D ExperimentalBuild below

Re: [CMake] Complete rebuild after svn update

2010-10-18 Thread Marcel Loose
/Makefile.cmake Or do you use keyword expansion in your CMakeLists.txt file. Keywords, like $Id$, $Author$, etc. are a relict from CVS, but still supported by Subversion, though you have to explicitly activate it using properties. An updated keyword could trigger a complete rebuild. Regards, Marcel

Re: [CMake] Merge two static libraries

2010-10-05 Thread Marcel Loose
to pay if you want to have just one static library. HTH, Marcel Loose. ___ 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

Re: [CMake] Merge two static libraries

2010-10-05 Thread Marcel Loose
been talking about static libraries only. Best regards, Marcel Loose. On Tue, 2010-10-05 at 10:45 +0200, pellegrini wrote: in fact the makefile we would like to generate should be able to: - build the console version of library (-DBUILD_WINDOW=False) - build the console AND the window

Re: [CMake] Merge two static libraries

2010-10-05 Thread Marcel Loose
sources twice. Best regards, Marcel Loose. On Tue, 2010-10-05 at 11:17 +0200, pellegrini wrote: Hi Marcel, I want a single library for respectively console and window modes because I was asked to not disrupt too much the current architecture of the library that is created in its console

Re: [CMake] Merge two static libraries

2010-10-05 Thread Marcel Loose
On Tue, 2010-10-05 at 13:40 +0200, Hendrik Sattler wrote: Zitat von Marcel Loose lo...@astron.nl: Even if you opt for the one static library option, you already gain in build speed. Suppose you've modified foo.c, then CMake will only rebuild foo.o. Of course, it will rebuild foo.o twice

Re: [CMake] Fwd: Removing overkill linking

2010-10-04 Thread Marcel Loose
afraid there's no silver bullet :-( Best regards, Marcel Loose. ___ 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] Build several libraries with different compilation flags

2010-10-01 Thread Marcel Loose
suggested. HTH, Marcel Loose. On Fri, 2010-10-01 at 17:10 +0200, pellegrini wrote: Hi Ryan, Yes, that might be the solution if I wanted to change the compiler flags for the whole library but in my case, that is not on the whole library that I want to apply a new set of compiler flags but only

Re: [CMake] Removing overkill linking

2010-10-01 Thread Marcel Loose
into the LINK_INTERFACE_LIBRARIES option of target_link_libraries to avoid over-linking. HTH, Marcel Loose. On Fri, 2010-10-01 at 16:12 +0100, Paul McEnery wrote: Hi. I'm a cmake newbie, and have only been exposed to cmake in the form of maintaining a Debian package. I'm working on packaging galinette (http

Re: [CMake] Overriding intel default compiler flags

2010-09-30 Thread Marcel Loose
, Marcel Loose. ___ 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://www.cmake.org/Wiki/CMake_FAQ Follow

Re: [CMake] How to specify -fpic ?

2010-09-30 Thread Marcel Loose
thoughts on the use of -whole-archive/--no-whole-archive here please? BR David See this yesterday's mail: http://www.mail-archive.com/cmake@cmake.org/msg31781.html HTH, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] How to specify -fpic ?

2010-09-30 Thread Marcel Loose
? Best regards, Marcel Loose. ___ 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://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] Running tests using [C++/Python] modules from the build tree

2010-09-29 Thread Marcel Loose
configure_file(). That's the way I do it, and it works great. Best regards, Marcel Loose. ___ 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

Re: [CMake] Howto compile static executable?

2010-09-29 Thread Marcel Loose
TARGET_SUPPORTS_SHARED_LIBS FALSE) else(BUILD_STATIC_EXECUTABLES) # Set RPATH to use for installed targets; append linker search path set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${LOFAR_LIBDIR}) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif(BUILD_STATIC_EXECUTABLES) HTH, Marcel Loose

Re: [CMake] cmake do not read my ifort compiler fllags - correct version

2010-09-29 Thread Marcel Loose
that, none of the changes you make to these *_INIT variables will be picked up. HTH, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] embedding lib into a shared object

2010-09-29 Thread Marcel Loose
sources with -fPIC -DPIC which is not the default when building static libraries. HTH, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] How to list user-definable CMake variables

2010-09-28 Thread Marcel Loose
, Marcel Loose. ___ 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://www.cmake.org/Wiki/CMake_FAQ Follow this link

Re: [CMake] How to list user-definable CMake variables

2010-09-28 Thread Marcel Loose
On 28. Sep, 2010, at 9:33 , Marcel Loose wrote: Hi all, I was wondering how I could generate a list of user-definable CMake variables. This list, with a brief help per variable, would be *very* useful for the end-user. It's a bit like the well-known configure --help which gives you

Re: [CMake] How to list user-definable CMake variables

2010-09-28 Thread Marcel Loose
On Tue, 2010-09-28 at 10:43 +0200, Michael Wild wrote: On 28. Sep, 2010, at 10:12 , Marcel Loose wrote: On 28. Sep, 2010, at 9:33 , Marcel Loose wrote: Hi all, I was wondering how I could generate a list of user-definable CMake variables. This list, with a brief help per

Re: [CMake] How to list user-definable CMake variables

2010-09-28 Thread Marcel Loose
On Tue, 2010-09-28 at 10:42 +0200, Eric Noulard wrote: 2010/9/28 Marcel Loose lo...@astron.nl: On 28. Sep, 2010, at 9:33 , Marcel Loose wrote: Hi all, I was wondering how I could generate a list of user-definable CMake variables. This list, with a brief help per variable, would

[Cmake-commits] CMake branch, next, updated. v2.8.2-840-g3f981c4

2010-09-20 Thread Marcel Loose
83c31ae Author: Marcel Loose lo...@astron.nl AuthorDate: Mon Sep 20 10:35:30 2010 +0200 Commit: Marcel Loose lo...@astron.nl CommitDate: Mon Sep 20 10:35:30 2010 +0200 Merge branch 'issue_10201' into next http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h

[Cmake-commits] CMake branch, next, updated. v2.8.2-758-g24ecd4c

2010-09-13 Thread Marcel Loose
, below. - Log - http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=24ecd4cfde77b2fa600022b3bdad0f41a1ba6bd5 commit 24ecd4cfde77b2fa600022b3bdad0f41a1ba6bd5 Merge: c134483 80bad29 Author: Marcel Loose lo...@astron.nl AuthorDate: Mon

[CMake] Volunteering to become maintainer of FindSubversion.cmake

2010-09-08 Thread Marcel Loose
Hi all, I would like to inform you that I'm volunteering to become the maintainer of FindSubversion.cmake. Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

Re: [CMake] Finding Python3

2010-07-22 Thread Marcel Loose
On Thu, 2010-07-22 at 03:09 +0200, Michael Hertling wrote: On 07/21/2010 10:26 AM, Michael Wild wrote: On 21. Jul, 2010, at 9:56 , Marcel Loose wrote: On Tue, 2010-07-20 at 09:18 -0700, Alan W. Irwin wrote: On 2010-07-20 17:12+0200 Michael Hertling wrote: On 07/20/2010 03:26 AM

Re: [CMake] Finding Python3

2010-07-22 Thread Marcel Loose
a policy to switch between old and new behaviour. However, I can see that not everyone is convinced that that would be the way to go. So yes, NAMES_FIRST and PATHS_FIRST sound OK. Best regards, Marcel Loose. On Thu, 2010-07-22 at 13:30 +0200, Michael Wild wrote: Thanks for reminding me of my old

Re: [CMake] Finding Python3

2010-07-21 Thread Marcel Loose
problems with some people's builds I would suggest to add a policy for this, which defaults to the proposed IMHO preferred behaviour: put the paths in the outer loop and the names in the inner loop. Just my 2cts, Marcel Loose. ___ Powered

Re: [CMake] Building a Version Header

2010-07-09 Thread Marcel Loose
compiling, I would discourage using my solution, because it will trigger too many complete rebuilds. Anyway, if you're interested, let me know. The code is GPL. Best regards, Marcel Loose. Op donderdag 08-07-2010 om 16:01 uur [tijdzone -0500], schreef Daniel Blezek: Sounds good. Incidentally

Re: [CMake] IF(TARGET var) fails on cmake 2.6.0

2010-07-08 Thread Marcel Loose
On Wed, 2010-07-07 at 16:49 -0400, Brad King wrote: On 7/7/2010 7:45 AM, Marcel Loose wrote: My pragmatic question is: is there a different way to check whether a target has already been defined, or not. Try this: get_target_property(mytarget_exists mytarget TYPE

Re: [CMake] building tests

2010-07-08 Thread Marcel Loose
On Thu, 2010-07-08 at 11:12 +0800, Paul Harris wrote: On 7 July 2010 23:38, Marcel Loose lo...@astron.nl wrote: On Wed, 2010-07-07 at 17:05 +0200, Michael Wild wrote: On 7. Jul, 2010, at 16:01 , Paul Harris wrote: Hi all

Re: [CMake] building tests

2010-07-08 Thread Marcel Loose
On Thu, 2010-07-08 at 11:12 +0800, Paul Harris wrote: On 7 July 2010 23:38, Marcel Loose lo...@astron.nl wrote: On Wed, 2010-07-07 at 17:05 +0200, Michael Wild wrote: On 7. Jul, 2010, at 16:01 , Paul Harris wrote: Hi all

Re: [CMake] building tests

2010-07-08 Thread Marcel Loose
On Thu, 2010-07-08 at 16:30 +0800, Paul Harris wrote: On 8 July 2010 16:27, Marcel Loose lo...@astron.nl wrote: On Thu, 2010-07-08 at 11:12 +0800, Paul Harris wrote: On 7 July 2010 23:38, Marcel Loose lo...@astron.nl wrote

[CMake] IF(TARGET var) fails on cmake 2.6.0

2010-07-07 Thread Marcel Loose
is good or bad practice. My pragmatic question is: is there a different way to check whether a target has already been defined, or not. If not, should I change my cmake_minimum_required() line to read VERSION 2.6.2? Best regards, Marcel Loose. ___ Powered

Re: [CMake] building tests

2010-07-07 Thread Marcel Loose
' and invoke 'make' there. You could also define a 'check' target that will build and run all your test programs. See http://www.cmake.org/Wiki/CMakeEmulateMakeCheck Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-07-06 Thread Marcel Loose
-29 03:45 0010198 FindSubversion does not always handle REQUIRED option correctly - Modules - 2010-01-29 03:40 0008466 Provide finer control than pass/fail for a test program - CTest - 2009-09-15 03:57 Best regards, Marcel Loose. On Mon, 2010-07-05 at 14:31 -0400, David Cole wrote: Hi all

Re: [CMake] Recursive list append

2010-07-06 Thread Marcel Loose
Hi Andreas, Use 'set(variable value PARENT_SCOPE])'. This will set the variable in the scope directly above the current scope. Remember that each add_subdirectory() will create a new scope. HTH, Marcel Loose. On Tue, 2010-07-06 at 10:06 +0200, Diablo 666 wrote: Hi, say I create a list

Re: [CMake] Howto unset cache variable without UNSET()

2010-07-02 Thread Marcel Loose
, I wanted to resort to 'IF DEFINED(FOO)'. Best regards, Marcel. On Thu, 2010-07-01 at 07:43 -0700, Tyler Roscoe wrote: Marcel, Maybe I missed it earlier ITT, but I don't understand why you can't just use if(FOO) instead? tyler On Thu, Jul 01, 2010 at 11:53:33AM +0200, Marcel Loose wrote

Re: [CMake] Howto unset cache variable without UNSET()

2010-07-01 Thread Marcel Loose
Hi Fraser, It doesn't. Well, partly it does, but unfortunately setting FOO to an empty string doesn't make it undefined; i.e. if(DEFINED FOO) will be TRUE. I've decided to use 'if(${FOO} MATCHES ^$)' instead. Best regards, Marcel Loose. On Wed, 2010-06-30 at 10:57 +0100, Fraser Hutchison wrote

[CMake] Howto unset cache variable without UNSET()

2010-06-30 Thread Marcel Loose
use it. The problem is that, though 'set(FOO)' will make FOO undefined, this doesn't seem to work for 'set(FOO CACHE INTERNAL Foo)'. Any ideas how to accomplish this? Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] Howto unset cache variable without UNSET()

2010-06-30 Thread Marcel Loose
On Wed, 2010-06-30 at 17:51 +0200, Alexander Neundorf wrote: On Wednesday 30 June 2010, Marcel Loose wrote: Hi all, Is there a way to unset a cache variable, i.e. make it undefined, *without* using unset(). My reason for asking is that my CMake scripts need to be backward compatible

Re: [CMake] Better BlueGene/P and cross-compile support for CMake

2010-06-25 Thread Marcel Loose
Hi Alex, On Thu, 2010-06-24 at 22:52 +0200, Alexander Neundorf wrote: On Thursday 24 June 2010, Marcel Loose wrote: Oops! Forgot to CC to the list. Hi Tod, I'll try to answer some of your questions below inline (I've snipped off parts of your mail). We're also using a BlueGeneP

Re: [CMake] Better BlueGene/P and cross-compile support for CMake

2010-06-24 Thread Marcel Loose
Best regards. -- Marcel Loose Senior Software Engineer, Computing Group, RD, Astron, the Netherlands ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

[CMake] CTest -D MemoryCheck

2010-05-31 Thread Marcel Loose
this? Best regards, Marcel Loose. ___ 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://www.cmake.org/Wiki

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-27 Thread Marcel Loose
, compared to using mpicxx. So, preferably the C/C++ compiler should be set to mpicc/mpicxx. However, that cannot be done after the project() statement has been run. So, I feel this is kind of a chicken-and-egg problem. Best regards, Marcel Loose. On Wed, 2010-05-26 at 20:10 +0200, Michael Wild wrote

[CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Marcel Loose
to the value of MPI_COMPILER? I vaguely remember that setting CMAKE_LANG_COMPILER after the project() statement was a definite no-no, because all kinds of tests, executed by the project() command, are done with the default C/C++ compilers. Best regards, Marcel Loose

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Marcel Loose
Yeah, I know that works. But if that's the proper solution, then what's the use of FindMPI anyways? Regards, Marcel Loose. On Wed, 2010-05-26 at 11:53 -0400, Dave Partyka wrote: The way I have accomplished this is to: export CC=mpicc export CXX=mpicxx blow away your build tree

Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Marcel Loose
the loop in the different cmFind*.cxx files inside out: i.e. loop over the paths in the outer loop and over the names in the inner loop. If it turns out this breaks any CMake build environments, a policy could be added, though I doubt that will be necessary. Best regards, Marcel Loose. On Sat, 2010

Re: [CMake] Where to change default link line on Cmake

2010-05-06 Thread Marcel Loose
default. Best regards, Marcel Loose. ___ 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://www.cmake.org/Wiki

Re: [CMake] Where do add_dependencies() that are not defines go?

2010-04-29 Thread Marcel Loose
from Kitware can comment on this? Best regards, Marcel Loose. On Wed, 2010-04-28 at 12:58 -0400, Luke Dalessandro wrote: On Wed, Apr 28, 2010 at 12:04 PM, Marcel Loose lo...@astron.nl wrote: Hi Luke, Remember that the definitions you do with add_definitions() are scoped; i.e. you can only

[CMake] CMake chokes on hash (#) in CMAKE_MODULE_PATH

2010-04-28 Thread Marcel Loose
(see below). Best regards, Marcel Loose. $ pwd /tmp/loose/cmake/#/build $ cat ../CMakeLists.txt cmake_minimum_required(VERSION 2.6) project(Hash) $ cmake --debug-trycompile -DCMAKE_MODULE_PATH=/tmp/loose/cmake/# .. debug trycompile on -- The C compiler identification is GNU -- The CXX compiler

Re: [CMake] Where do add_dependencies() that are not defines go?

2010-04-28 Thread Marcel Loose
, Marcel Loose. On Wed, 2010-04-28 at 11:44 -0400, Luke Dalessandro wrote: I meant add_definitions not dependencies. Sorry. Luke On Wed, Apr 28, 2010 at 11:39 AM, Luke Dalessandro ldalessan...@gmail.com wrote: We sometimes use add_dependencies to add compile flags that aren't defines, e.g

Re: [CMake] CMake and Matlab

2010-04-19 Thread Marcel Loose
and link flags. Best regards, Marcel Loose. On Mon, 2010-04-19 at 10:56 +0200, Tom Vercauteren wrote: Hi all, As a side note on this topic: It's not really necessary to use the mex executables to build mex files. As far as I understand it, mex files are just shared libraries. It should thus

Re: [CMake] Building CMake in parallel problem

2010-04-09 Thread Marcel Loose
'. The proper way to write this in a one-liner would be: make -j2 make -j2 install You might consider to set MAKEFLAGS=-j2. HTH, Marcel Loose. On Fri, 2010-04-09 at 07:50 +0200, Michael Wild wrote: Hi all While creating a formula for Homebrew on Mac OS X 10.6.2 I happened across a problem

Re: [CMake] FIND_LIBRARY in FindBoost finds wrong library

2010-03-22 Thread Marcel Loose
: Is there a reason why I cannot specify options like NO_CMAKE_ENVIRONMENT_PATH, NO_SYSTEM_ENVIRONMENT_PATH, etc. with FIND_PACKAGE(), except when using config mode? Best regards, Marcel Loose. On Fri, 2010-03-19 at 10:22 -0400, Chuck Atkins wrote: With multiple versions installed, setting

Re: [CMake] FIND_LIBRARY in FindBoost finds wrong library

2010-03-19 Thread Marcel Loose
this is (also) a CMake issue. IMHO it would make sense to turn the loop in cmFindLibraryCommand::FindNormalLibrary() inside out. What's your opinion? Best regards, Marcel Loose. On Thu, 2010-03-18 at 10:05 -0400, Michael Jackson wrote: I thought there was now an option the boost build system

Re: [CMake] FIND_LIBRARY in FindBoost finds wrong library

2010-03-19 Thread Marcel Loose
) paths, but I guess these might be erratic as well, when multiple versions of a package exists with libraries named slightly different. Best regards, Marcel Loose. On Fri, 2010-03-19 at 06:50 -0400, Philip Lowman wrote: Someone could add an option to FindBoost that will simply exclude

[CMake] FIND_LIBRARY in FindBoost finds wrong library

2010-03-18 Thread Marcel Loose
in cmFindLibraryCommand::FindNormalLibrary() inside out: i.e. for(path in paths) { for(name in names) { find name in path; if found return name; } } Any thoughts on this? Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open

[CMake] Can CMAKE_BINARY_DIR be realiable used before PROJECT()

2010-03-05 Thread Marcel Loose
Hi all, Can you rely on the value of CMAKE_BINARY_DIR (and CMAKE_SOURCE_DIR for that matter) before the PROJECT() statement has been seen by CMake? Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects

[CMake] Strange search order of CMakeCache.txt

2010-03-05 Thread Marcel Loose
that CMake is being run from (CMAKE_BINARY_DIR). Wouldn't it be more logical to start in the binary directory and then look in the source directory? Or, probably even better, completely ignore the source directory when searching for the cache file. Best regards, Marcel Loose

Re: [CMake] Strange search order of CMakeCache.txt

2010-03-05 Thread Marcel Loose
On Fri, 2010-03-05 at 14:27 +0100, Michael Wild wrote: On 5. Mar, 2010, at 14:19 , Marcel Loose wrote: Hi all, I just spent an hour debugging a very strange phenomenon running CMake on Mac OS-X, which in the end turned out to be trivial, but completely unexpected for me

Re: [CMake] FIND_XXX problem with symlinks when using ENV

2010-02-22 Thread Marcel Loose
On Sun, 2010-02-21 at 16:37 +0100, Alexander Neundorf wrote: On Friday 19 February 2010, Marcel Loose wrote: Hi all, I've noticed a problematic behaviour with the FIND_XXX macros when using ENV in either PATHS or HINTS: symbolic links get converted to the real paths. This happens

[CMake] FIND_XXX problem with symlinks when using ENV

2010-02-19 Thread Marcel Loose
/include Replacing 'ENV HDF5_ROOT' in find_path() with the literal string '/opt/hdf5' gives me: $ grep HDF5_INCLUDE_DIR CMakeCache.txt HDF5_INCLUDE_DIR:PATH=/opt/hdf5/include Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] CDash LDAP problem

2010-02-15 Thread Marcel Loose
Ahh, I thought CMake, CPack, CTest, CDash. Should all go on the same mailing list. Never realized there could be something like a CDash mailing list. I'll repost it there. Best regards, Marcel Loose. On Thu, 2010-02-11 at 09:10 -0500, Bill Hoffman wrote: Wrong mailing list, use the cdash

[CMake] CTest -D MemoryCheck hangs when not run from CMAKE_BINARY_DIR

2010-02-15 Thread Marcel Loose
the DartConfiguration.tcl file. Best regards, Marcel Loose. ### Start of output of ctest -V -D MemoryCheck ### UpdateCTestConfiguration from :/export/home/loose/work/LOFAR_trunk/build/gnu_debug/LCS/Common/DartConfiguration.tcl Cannot find file: /export/home/loose/work/LOFAR_trunk/build/gnu_debug/LCS/Common

[CMake] CTEST_CUSTOM_(PRE|POST)_TEST for *every* test ??

2010-02-15 Thread Marcel Loose
here is to make it possible to memory-check my test programs, ideally using 'ctest -D MemoryCheck'. Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

[CMake] CDash LDAP problem

2010-02-11 Thread Marcel Loose
]= string(11) objectclass [gecos]= array(2) { [count]= int(1) [0]= string(12) Marcel Loose } [1]= string(5) gecos [uid]= array(2) { [count]= int(1) [0]= string(5) loose } [2]= string(3) uid [sn]= array(2) { [count]= int(1) [0]= string(5) Loose } [3]= string(2) sn [givenname]= array(2) { [count

Re: [CMake] Inherited project settings

2010-02-03 Thread Marcel Loose (Astron)
Hi Brian, You ask a lot of questions in one mail ;-) I'll answer some inline (see below). Best regards, Marcel Loose. On Tuesday 02 February 2010 22:15:11 Brian Davis wrote: So I have various CMakeLists.txt files in my directory structure. Some with the PROJECT( name ) specified at the top

[CMake] What exactly does SITE_NAME() return?

2010-02-01 Thread Marcel Loose
the equivalent of 'hostname -s', i.e. return the short hostname, but the ChangeLog.txt appears to suggest that it should do the equivalent of 'hostname -f', i.e. return the fully qualified domain name. Which is correct? Best regards, Marcel Loose

[CMake] How to run CTEST_CUSTOM_(PRE|POST)_TEST for *every* test

2010-02-01 Thread Marcel Loose
regards, Marcel Loose. ___ 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://www.cmake.org/Wiki/CMake_FAQ Follow

Re: [CMake] What exactly does SITE_NAME() return?

2010-02-01 Thread Marcel Loose
), a broken out line from /etc/hosts, and the Network Information Service (NIS or YP), depending upon the contents of the order line in /etc/host.conf. The default action is to query named(8), followed by /etc/hosts. Yippie! Best regards, Marcel Loose. On Mon, 2010-02-01 at 09:08 -0500, David Cole wrote

Re: [CMake] Would there be a need for Subversion_WC_UPDATE??

2010-01-29 Thread Marcel Loose
On Thu, 2010-01-28 at 09:05 -0500, John Drescher wrote: On Thu, Jan 28, 2010 at 3:28 AM, Marcel Loose lo...@astron.nl wrote: Hi all, For my project, I'm working on automatic 'svn update' of (parts of) my source tree, prior to building. I was wondering whether someone else might

[CMake] How to do MemoryCheck when test is started by a bash script

2010-01-29 Thread Marcel Loose
. This script prepares the run-time environment for the test program (a.o. it copies some input files to the run-time directory). Problem is that when doing a 'ctest -D MemoryCheck' that 'bash' is memory-checked, instead of my test program. Is there an easy way to solve this? Best regards, Marcel

[CMake] FindSubversion does not handle REQUIRED option

2010-01-28 Thread Marcel Loose
. This puts the burden on the user to check Subversion_FOUND first, before calling, e.g., Subversion_WC_INFO. I'd prefer to do this inside the macro Subversion_WC_INFO. Just my 2 cents. Marcel Loose. Index: FindSubversion.cmake === RCS

Re: [CMake] how to add LDFLAGS BY FORCE??

2010-01-28 Thread Marcel Loose
this. Flaming doesn't help you much. Marcel Loose. On Thu, 2010-01-28 at 17:30 +0900, jojelino wrote: I DONT WANT 'CMAKE' DO DEPENDENCY STUFF. because it sucks very much. instead of letting cmake do MORON stuff to piss me off, i want to give it wise and toleable solution by giving LDFLAGS stuff

Re: [CMake] Subversion_WC_INFO macro should not do SEND_ERROR

2010-01-27 Thread Marcel Loose
On Tue, 2010-01-26 at 10:53 -0600, Ryan Pavlik wrote: On 1/26/10 10:33 AM, Tyler Roscoe wrote: On Tue, Jan 26, 2010 at 10:23:03AM +0100, Marcel Loose wrote: Is that portable? I don't do development on Windows, but I vaguely remember that on Windows the .svn directories had a different

[CMake] Patch for FindSubversion: fixes documentation and sets missing variable

2010-01-26 Thread Marcel Loose
Hi all, Here's a small patch that fixes two errors in the current FindSubversion.cmake file. 1) The variable var-prefix_WC_ROOT was documented, but not set. This has been fixed. 2) The documentation doesn't mention the existence of a second macro Subversion_WC_LOG, and erroneously mentions that

[CMake] Subversion_WC_INFO macro should not do SEND_ERROR

2010-01-25 Thread Marcel Loose
it to STATUS (or WARNING, but that's not supported for CMake 2.8) Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] Checking function or symbol in namespace

2010-01-22 Thread Marcel Loose
On Thu, 2010-01-21 at 13:47 +0100, Michael Wild wrote: On 21. Jan, 2010, at 12:07 , Marcel Loose wrote: On Thu, 2010-01-21 at 10:14 +0100, Michael Wild wrote: On 21. Jan, 2010, at 9:56 , Marcel Loose wrote: On Thu, 2010-01-21 at 06:52 +0100, Michael Wild wrote: On 21. Jan, 2010

Re: [CMake] Checking function or symbol in namespace

2010-01-22 Thread Marcel Loose
On Fri, 2010-01-22 at 10:33 +0100, Jed Brown wrote: On Fri, 22 Jan 2010 10:24:30 +0100, Marcel Loose lo...@astron.nl wrote: Partly true. If the preprocessor symbol provides a generic name for a function, which may have different names on different platforms, it will still work

[CMake] CMAKE_CONFIGURATION_TYPES bug??

2010-01-21 Thread Marcel Loose
completely missing the point here? Best regards, Marcel Loose. ___ 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] Checking function or symbol in namespace

2010-01-21 Thread Marcel Loose
On Thu, 2010-01-21 at 10:14 +0100, Michael Wild wrote: On 21. Jan, 2010, at 9:56 , Marcel Loose wrote: On Thu, 2010-01-21 at 06:52 +0100, Michael Wild wrote: On 21. Jan, 2010, at 24:55 , Mateusz Loskot wrote: Hi, I'm trying to perform the following checks

[CMake] make install wizardry with CMAKE_CONFIGURATION_TYPES?

2010-01-20 Thread Marcel Loose
what's going on here?? Best regards, Marcel Loose. ___ 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] Double @-substitution and configure_file()??

2010-01-19 Thread Marcel Loose
On Mon, 2010-01-18 at 11:55 -0500, David Cole wrote: On Mon, Jan 18, 2010 at 10:28 AM, Marcel Loose lo...@astron.nl wrote: Hi all, Is it possible to somehow do a double @-substitution when using, e.g., configure_file, similar to a double

[CMake] Double @-substitution and configure_file()??

2010-01-18 Thread Marcel Loose
...@hello@ -- Hello=Hello World Apparently this doesn't produce the same results. Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[CMake] How to regenerate source file during make?

2010-01-15 Thread Marcel Loose
of add_custom_command() and add_custom_target(). Best regards, Marcel Loose. ___ 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

Re: [CMake] How to regenerate source file during make?

2010-01-15 Thread Marcel Loose
', only during 'cmake'. Best regards, Marcel Loose. On Fri, 2010-01-15 at 15:04 +0100, Smith Jack (Ext. - UGIS - UniCredit Group) wrote: I do a similar thing with an XSD file from which I generate c++ wrapper classes for accessing the corresponding XML Note the DEPENDS line ! MACRO(XSD FILE

Re: [CMake] How to regenerate source file during make?

2010-01-15 Thread Marcel Loose
On Fri, 2010-01-15 at 16:35 +0100, Michael Wild wrote: On 15. Jan, 2010, at 16:25 , Marcel Loose wrote: On Fri, 2010-01-15 at 10:07 -0500, David Cole wrote: On Fri, Jan 15, 2010 at 9:44 AM, Marcel Loose lo...@astron.nl wrote: Hi Jack, The difference with your and my

Re: [CMake] How to regenerate source file during make?

2010-01-15 Thread Marcel Loose
On Fri, 2010-01-15 at 16:45 +0100, Michael Wild wrote: On 15. Jan, 2010, at 16:38 , David Cole wrote: On Fri, Jan 15, 2010 at 10:35 AM, Michael Wild them...@gmail.com wrote: On 15. Jan, 2010, at 16:25 , Marcel Loose wrote: On Fri, 2010-01-15 at 10:07 -0500, David Cole wrote

Re: [CMake] Can you add sources to a target library after add_library()?

2010-01-11 Thread Marcel Loose
Too bad. I was hoping I could do this without having to use a list variable to collect all my sources. In my case, the use of conditionals is somewhat awkward. Best regards, Marcel Loose. On Sat, 2010-01-09 at 18:38 -0500, Philip Lowman wrote: I highly doubt it. Best practice is to just use

<    1   2   3   4   5   >