[CMake] Excluding a file from a particular configuration with
Visual Studio
Joshua Jensen
jjensen at workspacewhiz.com
Fri Oct 12 09:01:24 EDT 2007
Sylvain Benner wrote:
>> What's the canonical way of marking a file as being excluded from a
>> given Visual Studio configuration?
> No this is not supported.
> I think it's better to use preprocessor to do this kind of stuff.
In my patched version at:
svn co svn://svn.luaplus.org/CMake/patches/All CMake
There is a new source file property called EXCLUDED_FROM_BUILD.
SET_SOURCE_FILES_PROPERTIES($(MY_SRCS) PROPERTIES EXCLUDED_FROM_BUILD true)
This handles Visual Studio .vcproj files, but it doesn't handle it on a
per configuration basis. The patch may get you halfway there, though.
Josh
More information about the CMake
mailing list