Commit a5f6b476 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: add internal cache entry for executables, so depends can work

parent 8aa21828
......@@ -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;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment