[CMake] Question about vars
Joshua Blocher
verbalshadow at gmail.com
Sun Sep 24 16:53:03 EDT 2006
Hi,
I'm having trouble with variables, anytime i use a variable with
gtk+-2.0 (i.e. gtk+-2.0_CFLAGS comes up cmake chokes on it and splits
out (see below) is this because i have non-alphanumeric characters in
them.
thank you
Joshua L. Blocher
verbalshadow
syntax error, unexpected cal_SYMBOL, expecting } (18), when parsing
string "${gtk+-2.0_CFLAGS}"
include(UsePkgConfig)
SET(2GEOM_DEPENDS gtk+-2.0 cairo gsl blas)
FOREACH(dep ${2GEOM_DEPENDS})
PKGCONFIG(${dep} ${dep}_INCLUDE_DIR ${dep}_LINK_DIR
${dep}_LINK_FLAGS ${dep}_CFLAGS)
ENDFOREACH(dep)
FOREACH(need ${2GEOM_DEPENDS})
PKGCONFIG_FOUND(${need} "${need}_FOUND")
IF("${need}_FOUND")
IF(WIN32)
message(STATUS "${need} Includes, Compile, and Link Flags:
HARDCODED")
ELSEIF(UNIX)
message(STATUS "${need} Includes, Compile, and Link Flags: FOUND")
ENDIF(WIN32)
ELSE("${need}_FOUND")
message(STATUS "${need} Includes, Compile, and Link Flags: NOT FOUND")
ENDIF("${need}_FOUND")
ENDFOREACH(need)
More information about the CMake
mailing list