diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-05 15:28:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-05 15:28:03 (GMT) |
commit | a5f6b47661d4494c5367c17ea1dd20e007570778 (patch) | |
tree | 634eea3408ef78914bab0e46fa58658251e0aada /Source/cmAddExecutableCommand.cxx | |
parent | 8aa2182806a05d3f3eba6fcbc17a7f921e7a24ac (diff) | |
download | CMake-a5f6b47661d4494c5367c17ea1dd20e007570778.zip CMake-a5f6b47661d4494c5367c17ea1dd20e007570778.tar.gz CMake-a5f6b47661d4494c5367c17ea1dd20e007570778.tar.bz2 |
BUG: add internal cache entry for executables, so depends can work
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r-- | Source/cmAddExecutableCommand.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx index cf49e3e..39e0291 100644 --- a/Source/cmAddExecutableCommand.cxx +++ b/Source/cmAddExecutableCommand.cxx @@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. =========================================================================*/ #include "cmAddExecutableCommand.h" +#include "cmCacheManager.h" // cmExecutableCommand bool cmAddExecutableCommand::Invoke(std::vector<std::string>& args) @@ -52,7 +53,12 @@ bool cmAddExecutableCommand::Invoke(std::vector<std::string>& args) std::vector<std::string>::iterator s = args.begin(); std::vector<std::string> srclists(++s, args.end()); - m_Makefile->AddExecutable(args[0].c_str(),srclists); + m_Makefile->AddExecutable(args[0].c_str(),srclists); + // Add an entry into the cache + cmCacheManager::GetInstance()-> + AddCacheEntry(args[0].c_str(), + m_Makefile->GetCurrentOutputDirectory(), + "Path to an executable", cmCacheManager::INTERNAL); return true; } |