[CMake] Question about functions
Workbench@gmx.at
workbench at gmx.at
Mon Feb 18 14:43:17 EST 2019
Hi everyone,
i have a function like:
FUNCTION(checksyste_64Bit arg1)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
SET(${arg1} TRUE PARENT_SCOPE)
ENDFUNCTION()
but when i call it with an INTERNAL variable i've set before with
SET(SYSTEM_64BIT FALSE CACHE INTERNAL)
checksystem_64bit(${SYSTEM_64BIT})
the ${SYSTE_64BIT} variable stays the same, i thought when i use
PARENT_SCOPE on a variable i can change it's value from inside the
function ?
best regards!
More information about the CMake
mailing list