Re: [eigen] Why do we overwrite CMAKE_BUILD_TYPE ?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


2010/10/21 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> We have these lines in our CMakeLists.txt
>
> string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_tolower)
> if(cmake_build_type_tolower STREQUAL "debug")
>  set(CMAKE_BUILD_TYPE "Debug")
> else()
>  set(CMAKE_BUILD_TYPE "Release")
> endif()
>
> IMHO we can safely remove this code.

I was scared that a case typo in the build type would silently fail.
I'll make sure it doesn't change anything but the case.

Benoit


>
> - Hauke
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/