diff options
author | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2002-02-04 13:28:54 (GMT) |
---|---|---|
committer | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2002-02-04 13:28:54 (GMT) |
commit | 626251ddf09b5a902c07c4cf2d96b0805595c0de (patch) | |
tree | ea5d000fecfda209b452a2b07cd56bfda9aa41d1 /Source/cmAuxSourceDirectoryCommand.cxx | |
parent | 11ff0db01fb09da63d6196b92142b4d4a3b71f98 (diff) | |
download | CMake-626251ddf09b5a902c07c4cf2d96b0805595c0de.zip CMake-626251ddf09b5a902c07c4cf2d96b0805595c0de.tar.gz CMake-626251ddf09b5a902c07c4cf2d96b0805595c0de.tar.bz2 |
the generated makefiles/DSPfiles now depend on the aux source directory's
last modified date.
Diffstat (limited to 'Source/cmAuxSourceDirectoryCommand.cxx')
-rw-r--r-- | Source/cmAuxSourceDirectoryCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index 17ccff0..00e974f 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/Source/cmAuxSourceDirectoryCommand.cxx @@ -31,6 +31,10 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar std::string tdir = m_Makefile->GetCurrentDirectory(); tdir += "/"; tdir += templateDirectory; + // The Makefile should be dependent on the directory's last mod date, + // so that if a file is added or removed from the directory, it will + // be rescanned, and the makefile rebuilt. + m_Makefile->AddCMakeDependFile(tdir.c_str()); // Load all the files in the directory cmDirectory dir; if(dir.Load(tdir.c_str())) |