<div>hi,</div>
<div>i have two questions:</div>
<div>i&#39;m building a VS 2005 project with cmake 2.6</div>
<div><strong>FIRST&nbsp; </strong>i want to set different flags in debug and release build so i wrote this</div>
<div>&nbsp;</div>
<div>if(MSVC_VERSION)<br>&nbsp;#flags dans le cas release <br>&nbsp;IF(CMAKE_BUILD_TYPE MATCHES Release|Win32)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; set_target_properties(helloDemo PROPERTIES<br>&nbsp;&nbsp;&nbsp;LINK_FLAGS &quot;/SUBSYSTEM:CONSOLE /MACHINE:X86 /MANIFEST /NOLOGO /DEBUG /mktyplib203&quot;<br>
&nbsp;&nbsp;&nbsp;COMPILE_FLAGS &quot;/GF /Od /W3 /Z7 /Od /MTd /NOLOGO&quot; <br>&nbsp;&nbsp;)<br>&nbsp;Endif(CMAKE_BUILD_TYPE MATCHES Release|Win32)<br>&nbsp;<br>&nbsp;#flags dans le cas debug<br>&nbsp;IF(CMAKE_BUILD_TYPE MATCHES Debug|Win32)<br>&nbsp;&nbsp;set_target_properties(helloDemo PROPERTIES<br>
&nbsp;&nbsp;&nbsp;LINK_FLAGS &quot;/SUBSYSTEM:CONSOLE /INCREMENTAL:NO /MACHINE:X86 /MANIFEST /NOLOGO /DEBUG /mktyplib203&quot;<br>&nbsp;&nbsp;&nbsp;COMPILE_FLAGS &quot;/GF /Od /W3 /Z7 /Od /MTd&quot; <br>&nbsp;&nbsp;)<br>&nbsp;ENDIF(CMAKE_BUILD_TYPE MATCHES Debug|Win32)<br>
&nbsp;</div>
<div>endif(MSVC_VERSION)</div>
<div>&nbsp;</div>
<div>the difference is the presence of INCREMENTAL:NO in debug. My problem is now that in VS project i have NO in Realease and Yes in release for INCREMENTAL. is it normal? is there a problem in my code?</div>
<div>&nbsp;</div>
<div><strong>FINALLY</strong> i want to have a different name format for my shared libraries names.</div>
<div>originally they are like lib1_so and it will be generated lib_so.dll but i want it to be lib1d_so in while in debug.</div>
<div>all i&#39;ve seen are prefix postfix and suffix which do not give the result.</div>
<div>&nbsp;</div>
<div>Thanks for help</div>
<div>&nbsp;</div>
<div>Ingrid</div>