[CMake] Way to use precompilation directive on cmake and conditionnal linking
Tyler
tyler at cryptio.net
Tue Mar 24 12:06:36 EDT 2009
On Tue, Mar 24, 2009 at 04:55:53PM +0100, Nadir SOUALEM wrote:
> Thank you Tyler , i use the same method for linking, but i thought there
> was a better way than:
>
> if (WITH_OPENGL)
> add_definitions (-DOPENGL)
> else (WITH_OPENGL)
> add_definitions (-DNO_OPENGL)
> endif (WITH_OPENGL)
>
> for preprocessing vars ....
Glad I could help, but now I'm curious: what's so bad about this
approach that you're looking for another way to do it?
tyler
More information about the CMake
mailing list