Thanks, and sorry to have called compiler optimization "tweaks", my english is not so good... but I see that you understood it.<br><br>Still, when I type "ccmake ." 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>
<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> <<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>> 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 <<a href="mailto:mehdi.rabah@gmail.com">mehdi.rabah@gmail.com</a>>:<br>> Hello,<br>><br>> I'm still new to cmake and I was wondering if cmake tweaks the compiler<br>> optimization when switching from Debug to Release configurations ?
<br>> If it's true, what is the behaviour when I set the variable into a custom<br>> configuration (other than Debug and Release).<br><br>There is no tweaks, depending on BUILD TYPE CMake use different<br>compilation FLAGS, launch "ccmake" on your project then
<br>toggle to "advanced mode" (t) you'll something like:<br><br>CMAKE_C_FLAGS_DEBUG -g<br>CMAKE_C_FLAGS_MINSIZEREL -Os -DNDEBUG<br>CMAKE_C_FLAGS_RELEASE -O3 -DNDEBUG<br>CMAKE_C_FLAGS_RELWITHDEBINFO -O2 -g
<br><br>and other<br><br>CMAKE_xxx_DEBUG/MINSIZEREL etc...<br><br>><br>> In general my question could be : what is the use off the configurations<br>> (CMAKE_BUILD_TYPE) other than in INSTALL command ?<br>> Sorry if that was already asked I didn'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>