[CMake] Conditional compilation of entire files

Lucas Thode ljthode at gmail.com
Sun Jul 5 08:55:23 EDT 2009


Hello CMake folks,


I have a source file in my project that needs to be compiled into my project
if and only if a certain configuration cache variable is set.  How do I go
about doing that, as it doesn't seem that you can append files to an
add_library() statement once you've closed it already?

Thanks,
--Lucas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090705/b4cac413/attachment.htm>


More information about the CMake mailing list