diff --git a/CMakeLists.txt b/CMakeLists.txt
index b1476bd..00fc0b9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,8 @@
 set(CMAKE_LEGACY_CYGWIN_WIN32 OFF)
 
+cmake_minimum_required(VERSION 2.8.12)
 project(GLFW C)
 
-cmake_minimum_required(VERSION 2.8.12)
 
 if (NOT CMAKE_VERSION VERSION_LESS "3.0")
     # Until all major package systems have moved to CMake 3,
