User forums > Help
build targets (debug/release etc)
(1/1)
			hd:
			
			Hi,
If a source file used in one more targets, than IDE don't generate build command except one target.
After a small change in makefilegenerator.cpp I can successfully compile
debug/release targets :)) as shown below:
void MakefileGenerator::DoAddMakefileTarget_Objs(wxString& buffer)
{
    //hd... m_ObjectFiles.Clear();
    wxString tmp;
    int targetsCount = m_Project->GetBuildTargetsCount();
    for (int x = 0; x < targetsCount; ++x)
    {
        ProjectBuildTarget* target = m_Project->GetBuildTarget(x);
        if (!target)
            break;
        
        m_ObjectFiles.Clear(); //hd...
        ....
        
--
Regards,
Hakki Dogusan
 :lol:
		
			hd:
			
			Hey too much smiling icons there... I think I'm happy :)
		
			hd:
			
			I forgat something:
For each target I created a distinct object directory: .objs, objsd etc.
HTH
--
Regards,
Hakki Dogusan
		
Navigation
[0] Message Index
Go to full version