[CMake] CMake CVS DEFINE_SYMBOL only works once

Alexander Neundorf a.neundorf-work at gmx.net
Wed Feb 15 04:21:11 EST 2006


> --- Ursprüngliche Nachricht --- 
> Von: "Brandon J. Van Every" <bvanevery at gmail.com> 
> An: cmake <cmake at cmake.org> 
> Betreff: [CMake] CMake CVS DEFINE_SYMBOL only works once 
> Datum: Wed, 15 Feb 2006 00:59:44 -0800 
>  
> I've built CMake from CVS using MinGW / MSYS.  If I write code like the  
> following: 
>  
> SET_TARGET_PROPERTIES(${CHICKEN_UNSAFE_LIB_NAME} PROPERTIES 
>   DEFINE_SYMBOL C_BUILDING_LIBCHICKEN) 
> SET_TARGET_PROPERTIES(${CHICKEN_UNSAFE_LIB_NAME} PROPERTIES 
>   DEFINE_SYMBOL C_UNSAFE_RUNTIME) 
>  
> only the last symbol will be defined, i.e. -DC_UNSAFE_RUNTIME.  This I  
> determine by inspecting the output of "make -n". 
 
The documentation for DEFINE_SYMBOL is slightly unclear. DEFINE_SYMBOL is 
intended to be used when compiling libraries under windows which need a 
-DEXPORT_SOMETHING define. 
 
What you are looking for is  
SET_TARGET_PROPERTIES(.... COMPILE_FLAGS ..) 
 
Bye 
Alex 
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the CMake mailing list