On Wed, 26 Apr 2006 14:40:24 -0400 Brad King <[EMAIL PROTECTED]> wrote:
> Xavier Delannoy wrote: > > Hi all, > > > > I use cmake 2.3 (KDE release). > > I'm not able to force /MD in release build and /MDd in debug build. here is > > how I proceed: > > > > in my CMakeLists.txt > > > > IF(WIN32) > > SET(PLATFORM_C_FLAGS "/W3 /MD /O2 /Gs") > > SET(PLATFORM_C_FLAGS_DEBUG "/W3 /MDd /Zi /Od") > > ENDIF(WIN32) > > > > SET(CMAKE_C_FLAGS "${PLATFORM_C_FLAGS}") > > SET(CMAKE_C_FLAGS_RELEASE "${PLATFORM_C_FLAGS}") > > SET(CMAKE_C_FLAGS_DEBUG "${PLATFORM_C_FLAGS_DEBUG}") > [snip] > > whereas .vcproj file doesn't use my CFLAGS ;( ;( > [snip] > > Optimization="2" > > RuntimeLibrary="0" > > WarningLevel="3" > > Is this a C or C++ project file? If it is C++ you need to use > CMAKE_CXX_FLAGS* instead of CMAKE_C_FLAGS*. It's a C project. > > -Brad > -- Xavier Delannoy R&D engineer [EMAIL PROTECTED] http://www.netasq.com Tél : +33 320 619 742 Fax : +33 320 619 639 ----------------------------------------------------------------------- This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. The information contained in this e-mail is intended solely for the addressee. Access to this e-mail by anyone else or any unauthorized review, use, disclosure or distribution is unauthorized and prohibited. If you are not the named addressee indicated in this message (or responsible for delivery of the message to such person), you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by fax or e-mail and delete and destroy all copies of the message. If you are the intended recipient but do not wish to receive communications through this medium, please advise the sender immediately. The views expressed in this e-mail are not necessarily the views of NetASQ. The company, its directors, officers or employees make no representation or accept any liability for its accuracy or completeness unless expressly stated to the contrary. ------------------------------------------------------------------------ _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake