[CMake] Exclude source files from build for a specific configuration with Visual Studio

Gaylord Charles gaylord.charles82 at gmail.com
Fri Apr 1 09:02:18 EDT 2011


Hello,

I am migrating a project from Visual Studio 8 to CMake and I look for a way
to exclude files from build for a defined configuration.

I think the "HEADER_FILE_ONLY" source file property can suit my needs and it
would be great to have a "HEADER_FILE_ONLY_<CONFIG> version.

But maybe there is a "workaround" that enables to get this kind of behavior.

Thanks,
Gaylord CHARLES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110401/d9cf4831/attachment.htm>


More information about the CMake mailing list