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
Martin PhD
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
[EMAIL PROTECTED]
518 371 3971 (w/f)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Bartlett, Roscoe A
Sent: Thursday, November 20, 2008 11:19 AM
To: cmake@cmake.org
Subject: [CMake] Return values from CMake functions
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
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