BUG: add internal cache entry for executables, so depends can work
This commit is contained in:
parent
8aa2182806
commit
a5f6b47661
@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
=========================================================================*/
|
=========================================================================*/
|
||||||
#include "cmAddExecutableCommand.h"
|
#include "cmAddExecutableCommand.h"
|
||||||
|
#include "cmCacheManager.h"
|
||||||
|
|
||||||
// cmExecutableCommand
|
// cmExecutableCommand
|
||||||
bool cmAddExecutableCommand::Invoke(std::vector<std::string>& args)
|
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>::iterator s = args.begin();
|
||||||
std::vector<std::string> srclists(++s, args.end());
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user