I would like to dynamically construct a macro or function name to
invoke. I basically have a core CMake system I want users to be able
to extend/plug stuff into without knowing about a lot of the core
CMake implementation. Callback functions would be an easy way for me
to accomplish this.
As an ex
On 19.07.2015 16:39, Yaron Cohen-Tal wrote:
I want to set "FOO" to "TRUE" iff both "COND_A" and "COND_B" are
true.I tried the following:
set (FOO (${COND_A} AND ${COND_B}))
The AND operator is handled and implemented by the if() and while()
commands and hence not available elsewhere.
but
I want to set "FOO" to "TRUE" iff both "COND_A" and "COND_B" are true.I
tried the following:
set (FOO (${COND_A} AND ${COND_B}))
but then FOO get's a value like "(;TRUE;AND;TRUE;)" instead of "TRUE". So I
had to write instead:
if (${COND_A} AND ${COND_B})
set (FOO TRUE)
else ()
set (FOO
On 19.07.2015 14:02, Yaron Cohen-Tal wrote:
Ok, I get it. But I still don't understand (and this has nothing to do
with CMake) why is it so that "By convention only one version within
that prefix may be available for development at a time". If I want to
develop one project that uses GLFW 2 and
Ok, I get it. But I still don't understand (and this has nothing to do with
CMake) why is it so that "By convention only one version within that prefix
may be available for development at a time". If I want to develop one
project that uses GLFW 2 and one project that uses GLFW 3, I need to have
bot
On 19.07.2015 08:38, Yaron Cohen-Tal wrote:
Hi,
For example, I currently have both versions 2 and 3 of the GLFW
library installed on my Linux computer, named "libglfw.so.2" and
"libglfw.so.3". Is it possible to tell CMake to find a specific
version of GLFW (say, version 3), and it would be sm