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 mess
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}"
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.
S
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 ca
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 mi
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} ${V
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=193949&package_id=228545
This is the CMakeEd_1.1.0_RC1.zip release. Please do try it out and
send feedback or bug repo
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 example,
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 b
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:
find_filesect2> Find the full path to a file.
find_path( name1 [path1 path2 ...])
Notice that the "usage" section refers to fi
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:
=
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 soo
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 simpl
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 cma
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 t
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' nor
16 matches
Mail list logo