[CMake] DEFINE_SYMBOL and static libs

Bill Hoffman bill.hoffman at kitware.com
Wed May 14 14:03:31 EDT 2008


Christian Ehrlicher wrote:
> Hi,
> 
> is there a rationale behind the fact that DEFINE_SYMBOL for static libs 
> is ignored? I do understand that (the automatic) MAKE_foo_LIB is not 
> needed here but I don't see a reason why to ignore a user-defined value.
> 
The user-defined value is just a way to change the name of the automatic 
one.
> The problem is that I want to compile a lib in static and shared mode 
> and it doesn't work because I can't define BUILD_STATIC when compiling 
> the static lib and therefore get compiler errors :(
> 
Why not COMPILE_FLAG property on the target?

-Bill


More information about the CMake mailing list