diff options
author | Brad King <brad.king@kitware.com> | 2016-02-08 15:33:04 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-02-08 15:33:04 (GMT) |
commit | a7e2021fea7f5dee0c8d8c6841819286438c8580 (patch) | |
tree | a21259a497240b8809ceebeeb09218e4c8f3d124 /Source | |
parent | 2619317c66ece81a9103731736ed7c8718e45666 (diff) | |
parent | c5eb21b6d1f4187778ad49545761a818e1126541 (diff) | |
download | CMake-a7e2021fea7f5dee0c8d8c6841819286438c8580.zip CMake-a7e2021fea7f5dee0c8d8c6841819286438c8580.tar.gz CMake-a7e2021fea7f5dee0c8d8c6841819286438c8580.tar.bz2 |
Merge topic 'fix-Fortran-module-in-subdir'
c5eb21b6 Fix dependency scanning configuration in subdirectories
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmcmd.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 1dc304c..e9d77b2 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -813,10 +813,8 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) { cm.SetGlobalGenerator(ggd); cmState::Snapshot snapshot = cm.GetCurrentSnapshot(); - snapshot.GetDirectory().SetCurrentBinary - (cmSystemTools::GetCurrentWorkingDirectory()); - snapshot.GetDirectory().SetCurrentSource - (cmSystemTools::GetCurrentWorkingDirectory()); + snapshot.GetDirectory().SetCurrentBinary(startOutDir); + snapshot.GetDirectory().SetCurrentSource(startDir); cmsys::auto_ptr<cmMakefile> mf(new cmMakefile(ggd, snapshot)); cmsys::auto_ptr<cmLocalGenerator> lgd( ggd->CreateLocalGenerator(mf.get())); |