Hi,

Gerrit Voss schrieb:
> Hi,
>
> On Mon, 2009-02-09 at 07:57 +0100, Christoph Schäfer wrote:
>   
>> Hi Gerrit,
>>
>> Gerrit Voss schrieb:
>>     
>>> Hi,
>>>
>>> short question, Visual Studio does not seem to pick up command line
>>> define changes (from cmake) automatically. Is there anyway to force it
>>> through cmake to do so ?
>>>
>>> thanks & kind regards,
>>>   gerrit
>>>   
>>>       
>> If you want to change defines within project scope one option is to use 
>> SET_TARGET_PROPERTIES like this (BuildFunctions.cmake -> build lib section)
>>
>> SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES
>>             COMPILE_FLAGS ${NEW_OSG_FLAGS}
>>
>>     
>
> That's what I do (differently though, ADD_DEFINITION). The problem I
> have is that Visual Studio does not rebuild anything once I finished the
> cmake run and the project reload has finished. This leaves the whole
> thing in a  rather inconsistent state, as the new/changed define is
> picked up only for the files that have their rebuild triggered buy other
> means. 
>
> So I'm looking for a way to force a full rebuild so that I get the
> whole thing back in a consistent state without having to rely on a
> manual rebuild.
>
> kind regards,
>   gerrit
>   

 From my experience I would say automatic rebuilding is an odd topic 
when it comes to Visual Studio. I think the best thing you can do is 
clean the build to make sure, everything gets rebuild on the next run. 
You can do this by using the command line (yay!):

MSBuild OpenSG.sln /t:Clean /p:Configuration=Debug

Cheers,
Christoph

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to