diff --git a/CMakeLists.txt b/CMakeLists.txt
index bab91198523ed0e6150c330c7cffc03f0eab30b4..94cb2274de6ed829d9906aa2f1abb8e2222ddb9b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,14 +16,6 @@ MESSAGE("Copyright (C) 2018-2019 CNRS-LAAS")
 MESSAGE("All rights reserved.")
 MESSAGE("Released under the BSD 3-Clause License.")
 
-# Set a default build type to 'Release' if none was specified
-IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
-  MESSAGE(STATUS "Setting build type to 'Release' as none was specified.")
-  SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
-  # Set the possible values of build type for cmake-gui
-  SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
-ENDIF()
-
 SETUP_PROJECT()
 
 OPTION (INSTALL_DATA "Install the data" ON)