Re: [CMake] build type problem

2013-04-12 Thread J Decker
I find addig this line helps. set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} debug release RelWithDebInfo MinSizeRel ) which makes cmake_build_type a drop list to chose. On Fri, Apr 12, 2013 at 11:53 AM, liulewes wrote: > I'm using cmake to build my own pro

[CMake] build type problem

2013-04-12 Thread liulewes
I'm using cmake to build my own project under centOS 6. During configuration, cmake asked me to choose the type of build; however, whatever I typed in for CMAKE_BUILD_TYPE, it won't let me proceed. Anyone can give a hint? I using cmake 2.8.10.2 compiled in centOS 6. Thanks. Best, Lewes

[CMake] build type problem and library postfix

2008-06-12 Thread Ingrid Kemgoum
hi, i have two questions: i'm building a VS 2005 project with cmake 2.6 *FIRST *i want to set different flags in debug and release build so i wrote this if(MSVC_VERSION) #flags dans le cas release IF(CMAKE_BUILD_TYPE MATCHES Release|Win32) set_target_properties(helloDemo PROPERTIES LI