summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBastien Schatt <bastien.schatt@magestik.fr>2018-04-15 20:14:52 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-19 13:39:34 (GMT)
commit6ec3e880e75761edcbb1e84fa4a596e69ac5a94f (patch)
tree38b04d28522ec3da6c22546b7b6d805892f80a16 /Source/cmVisualStudio10TargetGenerator.cxx
parent4984d8433edb05eac446542b561a31edf7a25783 (diff)
downloadCMake-6ec3e880e75761edcbb1e84fa4a596e69ac5a94f.zip
CMake-6ec3e880e75761edcbb1e84fa4a596e69ac5a94f.tar.gz
CMake-6ec3e880e75761edcbb1e84fa4a596e69ac5a94f.tar.bz2
VS: Add variables to set SDK directories in vcxproj files
Create `CMAKE_VS_SDK_*_DIRECTORIES` variables to tell the VS generator how to populate fields in `.vcxproj` files that specify SDK directories. Fixes: #17908
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 13af167..0d32b3a 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2235,6 +2235,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,