modif cmake to take into account the build type