From 6db3d950a8fe84fa228bf048977e920aff41846f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niccol=C3=B2=20Betto?= <niccolo.betto@skywarder.eu>
Date: Sat, 7 Dec 2024 02:05:20 +0100
Subject: [PATCH] [CMake] Fix sbs script include order

The `sbs.cmake` script was included too early, which caused `enable_language()` to be called before the call to project(), which is illegal by CMake specification.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2605d791..4fe5fc432 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,13 +21,13 @@
 
 cmake_minimum_required(VERSION 3.25)
 enable_testing()
-include(cmake/sbs.cmake)
 
 #-----------------------------------------------------------------------------#
 #                                   Project                                   #
 #-----------------------------------------------------------------------------#
 
 project(Boardcore)
+include(cmake/sbs.cmake)
 
 #-----------------------------------------------------------------------------#
 #                                 Entrypoints                                 #
-- 
GitLab