[CMake] generalizing SET_TARGET_PROPERTIES & DEFINE_SYMBOL
Lloyd Hilaiel
lloydh at yahoo-inc.com
Tue Jan 17 15:38:32 EST 2006
Hey all,
(NOTE: assumptions made based on behavior of cmake version 2.2-patch 3)
I understand the intention of this pair is to support the generation
of static libs & shared libs on windows, but would generalizing it a
bit hurt?
My thoughts are:
1) defining a symbol for a specific target should affect all built files
regardless of the type of target (in 2.2-3 it seems to be ignored for
static library targets)
2) defining multiple symbols per target should be possible
3) there should be a way to specify what the define should be set to
(other than "1")
The main problem I'm having is:
SET_TARGET_PROPERTIES(${TARGET} DEFINE_SYMBOL FOO)
does not suggest to me the real behavior, which seems to be:
"set FOO for compilation of files which will be rolled into ${TARGET}
iff ${TARGET} is a shared library target".
bad assumptions? not enough information? just plain dumb? :)
best,
lloyd
--
lloydh at yahoo-inc.com | the a to share Internet
http://docs.yahoo.com/info/values/
More information about the CMake
mailing list