diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f2b5d0b538db93c03c3724904357d1cf12fb892..ef4b825e842bc42905996283c9081239c29d67ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-# Checking for user explicity defined CMAKE_INSTALL_PREFIX
+# Checking for user explicitly defined CMAKE_INSTALL_PREFIX
 # It must be done before project(...)
 if(NOT CMAKE_INSTALL_PREFIX)
   set(QCA_INSTALL_IN_QT_PREFIX ON)
@@ -6,10 +6,11 @@ if(NOT CMAKE_INSTALL_PREFIX)
   unset(CMAKE_INSTALL_PREFIX CACHE)
 endif(NOT CMAKE_INSTALL_PREFIX)
 
-project(qca)
-
+# The cmake min. version should be set before calling project(...) too
 cmake_minimum_required(VERSION 3.4)
 
+project(qca)
+
 set(QCA_LIB_MAJOR_VERSION "2")
 set(QCA_LIB_MINOR_VERSION "2")
 set(QCA_LIB_PATCH_VERSION "1")
