For multi-config IDE's you *don't know* whether NDEBUG is defined or not at 
CMake-time.

I imagine that the build system could keep control on all passed compilation parameters if calls for generation commands would be intercepted (by CMake).
Does it get any feedback for changes of this preprocessor symbol?


And AFAIK there's no way to specify that a source file is conditional on the 
build configuration.

I can try an approximation. - Do I need to apply the variable "CMAKE_BUILD_TYPE" instead if I can not reuse the symbol's value?


add_executable(super super.c)

I would like to construct the source file list that is passed to this command dynamically. Can unneeded stuff be avoided?

Regards,
Markus
_______________________________________________
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