[cmake-developers] Setting unexposed Visual Studio properties from CMake?

Brad King brad.king at kitware.com
Tue Mar 17 14:43:55 EDT 2015


On 03/16/2015 10:28 AM, Robert Goulet wrote:
> Is there a way to set unexposed Visual Studio properties from CMake?

No.  Unlike Xcode the number of different places that VS properties
go means there is no good equivalent to XCODE_ATTRIBUTE_ for VS (or
any other generators AFAIK).

> Exposing every single Nsight Tegra build options to CMake is a big job

Nevertheless it is the cleanest path forward IMO.

Many of them are likely properties corresponding to specific build
flags.  The way this works for MS tools is to use the reverse mappings
builtin to CMake.  See Source/cmVS12CLFlagTable.h for example.  We
currently have no flag table for Nsight Tegra as mentioned in one
of the original commit messages:

 VS: Teach vcxproj generation about the Tegra-Android platform
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef0fd4f0

-Brad



More information about the cmake-developers mailing list