I have try, this doesn't work ;(<br>
it seems that Cmake already overwrite my value.<br>
<br>
here is my CMakeLists.txt<br>
<br>
PROJECT(NAS C)<br>
<br>
CMAKE_MINIMUM_REQUIRED(VERSION 2)<br>
SET(UPDATE_TYPE cvs)<br>
<br>
SET(CMAKE_CONFIGURATION_TYPES &quot;Debug;Release&quot; CACHE STRING &quot;must be force&quot; FORCE)<br>
<br>
ENABLE_TESTING()<br>
<br>
SET(MY_LIB_DIR &quot;${CMAKE_CURRENT_SOURCE_DIR}/lib&quot;)<br>
SET(MY_SRC_DIR &quot;${CMAKE_CURRENT_SOURCE_DIR}/src&quot;)<br>
SET(MY_ASQ_DIR &quot;${NETASQ_SRC_DIR}/ASQ&quot;)<br>
SET(MY_CONTRIB_DIR &quot;${CMAKE_CURRENT_SOURCE_DIR}/contrib&quot;)<br>
SET(MY_LIBICONV_DIR&nbsp;&nbsp;&nbsp; &quot;${NETASQ_CONTRIB_DIR}/libiconv-${LIBICONV_VERSION}&quot;)<br>
SET(MY_OPENSSL_DIR&nbsp;&nbsp;&nbsp; &quot;${NETASQ_CONTRIB_DIR}/openssl&quot;)<br>
SET(MY_LIBCURL_DIR&nbsp;&nbsp;&nbsp; &quot;${NETASQ_CONTRIB_DIR}/curl&quot;)<br>
<br>
<br>
#<br>
# SDK / DDK Directory<br>
#<br>
if(WIN32)<br>
&nbsp;&nbsp;&nbsp; SET(SDK_DIR &quot;${CMAKE_CURRENT_SOURCE_DIR}/../SDK&quot;)<br>
ENDIF(WIN32)<br>
<br>
#<br>
# Platform specific<br>
#<br>
IF(UNIX)<br>
&nbsp; IF(APPLE)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM &quot;Darwin&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_C_FLAGS &quot;&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_DEFINITION &quot;-D_DARWIN -D_REENTRANT -D_THREAD_SAFE&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_SUBDIR_SRC &quot;Darwin&quot;)<br>
&nbsp; ELSE(APPLE)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM &quot;FreeBSD&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_C_FLAGS &quot;&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_DEFINITION &quot;-D_FREEBSD -D_REENTRANT -D_THREAD_SAFE&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_SUBDIR_SRC &quot;FreeBSD&quot;)<br>
&nbsp; ENDIF(APPLE)<br>
ELSE(UNIX)<br>
&nbsp; IF(WIN32)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM &quot;Windows&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_C_FLAGS &quot;/W3 /MT /O2 /Gs&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_C_FLAGS_DEBUG &quot;/W3 /MTd /Zi /Od&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_DEFINITION &quot;-DWIN32&quot;)<br>
&nbsp;&nbsp;&nbsp; SET(PLATFORM_SUBDIR_SRC &quot;Win32&quot;)<br>
&nbsp; ELSE(WIN32)<br>
&nbsp;&nbsp;&nbsp; MESSAGE(FATAL_ERROR &quot;Not supported platform&quot;)<br>
&nbsp; ENDIF(WIN32)<br>
ENDIF(UNIX)<br>
<br>
ADD_DEFINITIONS(${PLATFORM_DEFINITION})<br>
SET(CMAKE_C_FLAGS_RELEASE &quot;${PLATFORM_C_FLAGS}&quot;)<br>
SET(CMAKE_C_FLAGS_DEBUG &quot;${PLATFORM_C_FLAGS_DEBUG}&quot;)<br>
<br>
ADD_SUBDIRECTORY(${MY_LIB_DIR} ${MY_LIB_DIR}/Cmake)<br>
ADD_SUBDIRECTORY(${MY_SRC_DIR} ${MY_SRC_DIR}/Cmake)<br><br><div><span class="gmail_quote">2006/1/3, Jan Woetzel &lt;<a href="mailto:jw@mip.informatik.uni-kiel.de">jw@mip.informatik.uni-kiel.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
xavier delannoy wrote:<br><br>&gt; I 'd like to restrict to Debug and Release only, thus I tried:<br>&gt;<br>&gt; SET(CMAKE_CONFIGURATION_TYPES &quot;Debug;Release&quot;) in my CMakeList.txt<br>&gt; (which is located in the root directory of my project)
<br>&gt;<br>&gt; When I edit CMakeCache.txt by hand, it's ok.<br><br><br>CMake is creating a cache entry fro them,<br>so you need to force it.<br>Example:<br><br>SET(CMAKE_CONFIGURATION_TYPES &quot;Debug&quot;<br>&nbsp;&nbsp; CACHE STRING&nbsp;&nbsp;&quot;semicolon separated list og configuration types,
<br>usually Debug;Release (forced!)&quot; FORCE)<br><br><br>--<br><br>&nbsp;&nbsp;Dipl.-Ing. Jan Woetzel<br>--------------------------------------------------<br>&nbsp;&nbsp;University of Kiel<br>&nbsp;&nbsp;Institute of Computer Science and Applied Mathematics
<br>&nbsp;&nbsp;Hermann-Rodewald-Str. 3 [room 310]<br>&nbsp;&nbsp;24098 Kiel/Germany<br>--------------------------------------------------<br>&nbsp;&nbsp;Phone +49-431-880-4477<br>&nbsp;&nbsp;Fax&nbsp;&nbsp; +49-431-880-4054<br>&nbsp;&nbsp;Mob.&nbsp;&nbsp;+49-179-2937346<br>--------------------------------------------------
<br>&nbsp;&nbsp;Url&nbsp;&nbsp; <a href="http://www.mip.informatik.uni-kiel.de/~jw">www.mip.informatik.uni-kiel.de/~jw</a><br>&nbsp;&nbsp;Email <a href="mailto:jw@mip.informatik.uni-kiel.de">jw@mip.informatik.uni-kiel.de</a><br><br></blockquote></div>
<br>