diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-08 15:58:36 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-08 15:58:36 (GMT) |
commit | 347c5f4b46396e974ff164b44f23b37eef779138 (patch) | |
tree | e6457f6b3ce5ec7e54f3991e4e7912d2531f98b3 /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | 6fe45fe9c3348645a0fe145e1f32c487829cea64 (diff) | |
download | CMake-347c5f4b46396e974ff164b44f23b37eef779138.zip CMake-347c5f4b46396e974ff164b44f23b37eef779138.tar.gz CMake-347c5f4b46396e974ff164b44f23b37eef779138.tar.bz2 |
ENH: add working directory support
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index e4948a3..c13efd0 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -67,6 +67,7 @@ void cmGlobalVisualStudio8Generator::Generate() // Add a special target on which all other targets depend that // checks the build system and optionally re-runs CMake. const char* no_output = 0; + const char* no_working_directory = 0; std::vector<std::string> no_depends; std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it; for(it = m_ProjectMap.begin(); it!= m_ProjectMap.end(); ++it) @@ -82,6 +83,7 @@ void cmGlobalVisualStudio8Generator::Generate() std::string cmake_command = mf->GetRequiredDefinition("CMAKE_COMMAND"); mf->AddUtilityCommand(CMAKE_CHECK_BUILD_SYSTEM_TARGET, true, no_output, no_depends, + no_working_directory, "echo", "Checking build system"); // Add a custom rule to re-run CMake if any input files changed. @@ -127,9 +129,10 @@ void cmGlobalVisualStudio8Generator::Generate() // target. const char* no_comment = 0; const char* no_main_dependency = 0; + const char* no_working_directory = 0; mf->AddCustomCommandToOutput( CMAKE_CHECK_BUILD_SYSTEM_TARGET ".vcproj.cmake", listFiles, - no_main_dependency, commandLines, no_comment, true); + no_main_dependency, commandLines, no_comment, no_working_directory, true); } } } |