[CMake] Adding install dependency to test-target?

2008-11-20 Thread Hugo Heden
Good day all, Is there any way that I can add 'install' dependency to the 'test'-target? Doing add_dependencies( test install ) does not seem to work: CMake Error at ... (ADD_DEPENDENCIES): add_dependencies Adding dependency to non-existent target: test Apparently neither 'test'

Re: [CMake] Adding install dependency to test-target?

2008-11-20 Thread Eric Noulard
2008/11/20 Hugo Heden [EMAIL PROTECTED]: Good day all, Is there any way that I can add 'install' dependency to the 'test'-target? Doing add_dependencies( test install ) does not seem to work: CMake Error at ... (ADD_DEPENDENCIES): add_dependencies Adding dependency to

[CMake] Running configure/make from CMakeLists.txt

2008-11-20 Thread Sean Soria
I'm trying to convert a project to cmake. There are a lot of other open source libraries contained in the project which are compiled using configure/make. I'd like to not have to convert their build methods to use cmake as well. Is there a simple way to run configure/make on a directory from

Re: [CMake] Running configure/make from CMakeLists.txt

2008-11-20 Thread Eric Noulard
2008/11/20 Sean Soria [EMAIL PROTECTED]: I'm trying to convert a project to cmake. There are a lot of other open source libraries contained in the project which are compiled using configure/make. I'd like to not have to convert their build methods to use cmake as well. Is there a simple way

Re: [CMake] List of 'Reserved Words'

2008-11-20 Thread Michael Jackson
On Nov 19, 2008, at 9:27 PM, Matthew Woehlke wrote: Matthew Woehlke wrote: Michael Jackson wrote: On Nov 19, 2008, at 12:24 PM, Matthew Woehlke wrote: Should I post the whole script? Sure. You can post the script on the CMake Wiki or post it here and I'll get it up on the Wiki really

Re: [CMake] missing OLDNAMES.lib when building for WinCE

2008-11-20 Thread Bill Hoffman
Andreas Pokorny wrote: Hello, Maybe this is slightly offtopic, but I am playing around again with WinCE and CMake. For some reason I am now running into an issue I never had before, during the compile checks I get the following output in CMakeError.log:

[CMake] Documentation for find_file and find_path

2008-11-20 Thread Michael Jackson
The two commands seem to have the exact same documentation. Are they the same command in reality? In the generated CMake.docbook there is this xml: para id=command_find_filesect2titlefind_file/title/ sect2 Find the full path to a file./para literallayout find_path(lt;VARgt; name1

Re: [CMake] Adding install dependency to test-target?

2008-11-20 Thread Hugo Heden
Eric Noulard wrote: Good day all, Is there any way that I can add 'install' dependency to the 'test'-target? Doing add_dependencies( test install ) does not seem to work: CMake Error at ... (ADD_DEPENDENCIES): add_dependencies Adding dependency to non-existent target: test May

[CMake] Return values from CMake functions?

2008-11-20 Thread Bartlett, Roscoe A
Hello, Has anyone thought about the possibility of adding return values from CMake functions? This would be a very useful language feature that the Trilinos CMake files would use everywhere. Here is an example use case. One problem with CMake is that it has very loose checking. For

[CMake] CMakeEditor Eclipse Plugin Update

2008-11-20 Thread Michael Jackson
I have created an updated package for the Eclipse CMake Editor Plugin. You can download it from the following location: http://sourceforge.net/project/showfiles.php?group_id=193949package_id=228545 This is the CMakeEd_1.1.0_RC1.zip release. Please do try it out and send feedback or bug

Re: [CMake] Return values from CMake functions?

2008-11-20 Thread Ken Martin
While not super sexy, you can do what you are looking for with a minor twist. The following code illustrates it. function(assertdef VARNAME RESULT_NAME) if(NOT DEFINED ${VARNAME}) message(SEND_ERROR Error, the variable ${VARNAME} is not defined!) endif() set (${RESULT_NAME}

Re: [CMake] Return values from CMake functions?

2008-11-20 Thread Bartlett, Roscoe A
Ken, -Original Message- From: Ken Martin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 11:08 AM To: Bartlett, Roscoe A; cmake@cmake.org Subject: RE: [CMake] Return values from CMake functions? While not super sexy, you can do what you are looking for with a minor

Re: [CMake] Return values from CMake functions?

2008-11-20 Thread Ken Martin
True, if you mismatch the typing of varname it fails. At least with this approach it can be a fairly short variable and not something like CXX_SHARED_LIBRARY_LINKER_FLAGS_DEBUG which begs to have typos in it :-) The suggestion I had was to use the ${SOMETHING(...)} syntax to invoke a function

Re: [CMake] if(MATCHES) broken??

2008-11-20 Thread Matthew Woehlke
Bill Hoffman wrote: The problem is that if(something MATCHES something) works for either strings or variable names. The way that works is by checking to see if there is a variable defined by the string given to if. Even if that string is in quotes, it can still be treated like a variable.

Re: [CMake] if(MATCHES) broken??

2008-11-20 Thread Matthew Woehlke
Bill Hoffman wrote: The only work around that I can think of is to change the macro to a function and unset the variable before the test. function(foo bar) set(${bar} ) # unset the variable named ${bar} if(${bar} MATCHES CFLAGS) message(STATUS CFLAGS matched) elseif(${bar} STREQUAL

[CMake] what is wrong with this snippet? (bug?)

2008-11-20 Thread Matthew Woehlke
set(!BANG wacky CACHE STRING FORCE) set(var with space wacky CACHE STRING FORCE) message(STATUS This is !BANG: ${!BANG}) message(STATUS This is var with space: ${var with space}) The above snippet (as expected) causes a CMake error. What's interesting is that the error is in the message, not