VS: renamed target property VS_USER_PROPS_CXX to VS_USER_PROPS

This commit is contained in:
Michael Stürmer 2017-01-09 16:32:22 +01:00
parent 7f5842d7d9
commit 6fda6005b3
5 changed files with 6 additions and 7 deletions

View File

@ -291,7 +291,7 @@ Properties on Targets
/prop_tgt/VS_SCC_PROJECTNAME
/prop_tgt/VS_SCC_PROVIDER
/prop_tgt/VS_SDK_REFERENCES
/prop_tgt/VS_USER_PROPS_CXX
/prop_tgt/VS_USER_PROPS
/prop_tgt/VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION
/prop_tgt/VS_WINRT_COMPONENT
/prop_tgt/VS_WINRT_EXTENSIONS

View File

@ -1,5 +1,5 @@
VS_USER_PROPS_CXX
-----------------
VS_USER_PROPS
-------------
Sets the user props file to be included in the visual studio
C++ project file. The standard path is

View File

@ -3,7 +3,7 @@ vs-custom-msbuild-props
* The :ref:`Visual Studio Generators` for VS 2010 and above can
now be fine tuned using custom msbuild .props files.
:prop_tgt:`VS_USER_PROPS_CXX` can be
:prop_tgt:`VS_USER_PROPS` can be
used to change the default path of the user .props file from
``$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props`` to
an arbitrary filename.

View File

@ -385,8 +385,7 @@ void cmVisualStudio10TargetGenerator::Generate()
this->WriteString("<ImportGroup Label=\"PropertySheets\">\n", 1);
{
std::string props = VS10_CXX_USER_PROPS;
if (const char* p =
this->GeneratorTarget->GetProperty("VS_USER_PROPS_CXX")) {
if (const char* p = this->GeneratorTarget->GetProperty("VS_USER_PROPS")) {
props = p;
this->ConvertToWindowsSlash(props);
}

View File

@ -4,4 +4,4 @@ add_library(foo foo.cpp)
set(props_file "${CMAKE_CURRENT_SOURCE_DIR}/my.props")
set_target_properties(foo PROPERTIES
VS_USER_PROPS_CXX "${props_file}")
VS_USER_PROPS "${props_file}")