diff --git a/CMakeLists.txt b/CMakeLists.txt
index b690dcc9a377f8a7e3bbd411c53c13324a135705..be6e8e18f785506fd29a7168092ecc0466e0086c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,17 +51,8 @@ APPLY_DEFAULT_APPLE_CONFIGURATION()
 
 OPTION(BUILD_PYTHON_INTERFACE "Build the python bindings" OFF)
 
-# Tell CMake that we compute the PROJECT_VERSION manually.
-IF(CMAKE_VERSION VERSION_GREATER "3.0.0")
-  CMAKE_POLICY(SET CMP0048 NEW)
-  IF(CMAKE_VERSION VERSION_GREATER "3.9.0")
-    PROJECT(${PROJECT_NAME} VERSION ${PROJECT_VERSION_FULL} LANGUAGES CXX DESCRIPTION ${PROJECT_DESCRIPTION})
-  ELSE(CMAKE_VERSION VERSION_GREATER "3.9.0")
-    PROJECT(${PROJECT_NAME} VERSION ${PROJECT_VERSION_FULL} LANGUAGES CXX)
-  ENDIF(CMAKE_VERSION VERSION_GREATER "3.9.0")
-ELSE(CMAKE_VERSION VERSION_GREATER "3.0.0")
-  PROJECT(${PROJECT_NAME} CXX)
-ENDIF(CMAKE_VERSION VERSION_GREATER "3.0.0")
+COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
+PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
 
 add_required_dependency("eigen3 >= 3.0.0")
 include_directories(SYSTEM ${EIGEN3_INCLUDE_DIRS})