Thanks, and sorry to have called compiler optimization &quot;tweaks&quot;, my english is not so good... but I see that you understood it.<br><br>Still,&nbsp; when I type &quot;ccmake .&quot; and I toggle to advanced mode, I only get CMAKE_BACKWARDS_COMPATIBILITY variable.
<br><br>Here is what my CMakeLists.txt look like:<br>------------------<br>project ( Test ) <br>cmake_minimum_required ( VERSION 2.4.4 )<br><br>set ( CMAKE_VERBOSE_MAKEFILE OFF )<br> set ( CMAKE_BUILD_TYPE Debug )<br>&nbsp;&nbsp;  
<br>set ( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../Build/${CMAKE_BUILD_TYPE}/bin ) <br>set ( LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../Build/${CMAKE_BUILD_TYPE}/lib ) <br><br>include_directories ( Structs ) <br>
<br>add_subdirectory ( Applications ) <br>add_subdirectory ( Drivers )<br>----------------<br><br>Do I made something wrong ?<br><br>Regards,<br><br><br><br><div><span class="gmail_quote">On 2/12/07, <b class="gmail_sendername">
Eric Noulard</b> &lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/2/12, Mehdi Rabah &lt;<a href="mailto:mehdi.rabah@gmail.com">mehdi.rabah@gmail.com</a>&gt;:<br>&gt; Hello,<br>&gt;<br>&gt; I&#39;m still new to cmake and I was wondering if cmake tweaks the compiler<br>&gt; optimization when switching from Debug to Release configurations ?
<br>&gt; If it&#39;s true, what is the behaviour when I set the variable into a custom<br>&gt; configuration (other than Debug and Release).<br><br>There is no tweaks, depending on BUILD TYPE CMake use different<br>compilation FLAGS, launch &quot;ccmake&quot; on your project then
<br>toggle to &quot;advanced mode&quot; (t) you&#39;ll something like:<br><br>CMAKE_C_FLAGS_DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-g<br>CMAKE_C_FLAGS_MINSIZEREL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Os -DNDEBUG<br>CMAKE_C_FLAGS_RELEASE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-O3 -DNDEBUG<br>CMAKE_C_FLAGS_RELWITHDEBINFO&nbsp;&nbsp;&nbsp;&nbsp; -O2 -g
<br><br>and other<br><br>CMAKE_xxx_DEBUG/MINSIZEREL etc...<br><br>&gt;<br>&gt; In general my question could be : what is the use off the configurations<br>&gt; (CMAKE_BUILD_TYPE) other than in INSTALL command ?<br>&gt; Sorry if that was already asked I didn&#39;t found.
<br><br>Have a look at:<br><a href="http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools">http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools</a><br><br><br>--<br>Erk<br></blockquote></div>
<br>