summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-20 11:51:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-04-20 11:52:02 (GMT)
commitfe0082875aeecead23b2351629abca4990dfba43 (patch)
tree65474c55b5c71e5eb2b887e954bbe5f4011b060d /Source/cmVisualStudio10TargetGenerator.cxx
parent293bb0f47555e5795f46c2415300a050c187ebda (diff)
parent6ec3e880e75761edcbb1e84fa4a596e69ac5a94f (diff)
downloadCMake-fe0082875aeecead23b2351629abca4990dfba43.zip
CMake-fe0082875aeecead23b2351629abca4990dfba43.tar.gz
CMake-fe0082875aeecead23b2351629abca4990dfba43.tar.bz2
Merge topic 'vs-sdk-dirs'
6ec3e880e7 VS: Add variables to set SDK directories in vcxproj files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1965
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx49
1 files changed, 49 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 19cb50b..b56104e 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2242,6 +2242,55 @@ void cmVisualStudio10TargetGenerator::WritePathAndIncrementalLinkOptions()
*this->BuildFileStream << cmVS10EscapeXML(intermediateDir)
<< "</IntDir>\n";
+ if (const char* sdkExecutableDirectories = this->Makefile->GetDefinition(
+ "CMAKE_VS_SDK_EXECUTABLE_DIRECTORIES")) {
+ this->WritePlatformConfigTag("ExecutablePath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkExecutableDirectories)
+ << "</ExecutablePath>\n";
+ }
+
+ if (const char* sdkIncludeDirectories = this->Makefile->GetDefinition(
+ "CMAKE_VS_SDK_INCLUDE_DIRECTORIES")) {
+ this->WritePlatformConfigTag("IncludePath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkIncludeDirectories)
+ << "</IncludePath>\n";
+ }
+
+ if (const char* sdkReferenceDirectories = this->Makefile->GetDefinition(
+ "CMAKE_VS_SDK_REFERENCE_DIRECTORIES")) {
+ this->WritePlatformConfigTag("ReferencePath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkReferenceDirectories)
+ << "</ReferencePath>\n";
+ }
+
+ if (const char* sdkLibraryDirectories = this->Makefile->GetDefinition(
+ "CMAKE_VS_SDK_LIBRARY_DIRECTORIES")) {
+ this->WritePlatformConfigTag("LibraryPath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkLibraryDirectories)
+ << "</LibraryPath>\n";
+ }
+
+ if (const char* sdkLibraryWDirectories = this->Makefile->GetDefinition(
+ "CMAKE_VS_SDK_LIBRARY_WINRT_DIRECTORIES")) {
+ this->WritePlatformConfigTag("LibraryWPath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkLibraryWDirectories)
+ << "</LibraryWPath>\n";
+ }
+
+ if (const char* sdkSourceDirectories =
+ this->Makefile->GetDefinition("CMAKE_VS_SDK_SOURCE_DIRECTORIES")) {
+ this->WritePlatformConfigTag("SourcePath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkSourceDirectories)
+ << "</SourcePath>\n";
+ }
+
+ if (const char* sdkExcludeDirectories = this->Makefile->GetDefinition(
+ "CMAKE_VS_SDK_EXCLUDE_DIRECTORIES")) {
+ this->WritePlatformConfigTag("ExcludePath", config, 2);
+ *this->BuildFileStream << cmVS10EscapeXML(sdkExcludeDirectories)
+ << "</ExcludePath>\n";
+ }
+
if (const char* workingDir = this->GeneratorTarget->GetProperty(
"VS_DEBUGGER_WORKING_DIRECTORY")) {
this->WritePlatformConfigTag("LocalDebuggerWorkingDirectory", config,