diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01c49d7df9c648382f8bca369314fe94a2394124..525a359217a474e04e8116006009c06a0d0f5645 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,8 @@ macro(hunter_add_package_safe)
     message("pkg_conf_path: '$ENV{PKG_CONFIG_PATH}', pkg_conf_libdir: '$ENV{PKG_CONFIG_LIBDIR}'")
 endmacro()
 
+project(nheko LANGUAGES CXX C)
+
 option(USE_BUNDLED_SPDLOG "Use the bundled version of spdlog." ${HUNTER_ENABLED})
 option(USE_BUNDLED_OLM "Use the bundled version of libolm." ${HUNTER_ENABLED})
 option(USE_BUNDLED_GTEST "Use the bundled version of Google Test." ${HUNTER_ENABLED})
@@ -109,8 +111,6 @@ endif()
 # Include Qt basic functions
 include(QtCommon)
 
-project(nheko LANGUAGES CXX C)
-
 include(GNUInstallDirs)
 
 set(CPACK_PACKAGE_VERSION_MAJOR "0")