Tyler wrote:
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
Not so bad, but it would be very nice to do some things such adding preprocessing on command line calls:
cmake -DPREPROCCESSING_VAR

:-)

Thank you Tyler.

--
Nadir SOUALEM
Ingénieur INRIA - Équipe SAGE


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to