<div>hi,</div>
<div>i have two questions:</div>
<div>i'm building a VS 2005 project with cmake 2.6</div>
<div><strong>FIRST </strong>i want to set different flags in debug and release build so i wrote this</div>
<div> </div>
<div>if(MSVC_VERSION)<br> #flags dans le cas release <br> IF(CMAKE_BUILD_TYPE MATCHES Release|Win32)<br> set_target_properties(helloDemo PROPERTIES<br> LINK_FLAGS "/SUBSYSTEM:CONSOLE /MACHINE:X86 /MANIFEST /NOLOGO /DEBUG /mktyplib203"<br>
COMPILE_FLAGS "/GF /Od /W3 /Z7 /Od /MTd /NOLOGO" <br> )<br> Endif(CMAKE_BUILD_TYPE MATCHES Release|Win32)<br> <br> #flags dans le cas debug<br> IF(CMAKE_BUILD_TYPE MATCHES Debug|Win32)<br> set_target_properties(helloDemo PROPERTIES<br>
LINK_FLAGS "/SUBSYSTEM:CONSOLE /INCREMENTAL:NO /MACHINE:X86 /MANIFEST /NOLOGO /DEBUG /mktyplib203"<br> COMPILE_FLAGS "/GF /Od /W3 /Z7 /Od /MTd" <br> )<br> ENDIF(CMAKE_BUILD_TYPE MATCHES Debug|Win32)<br>
</div>
<div>endif(MSVC_VERSION)</div>
<div> </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> </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've seen are prefix postfix and suffix which do not give the result.</div>
<div> </div>
<div>Thanks for help</div>
<div> </div>
<div>Ingrid</div>