From 6a4ee2ff9b2bde2d95b7a99e4b4451a5afd04867 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Mon, 26 Feb 2024 11:26:22 +0100 Subject: [PATCH] [Debug] Try to move `CMAKE_BUILD_TYPE` before `project` Signed-off-by: Cristian Le --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bf99ad..c1e0357 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,10 @@ cmake_minimum_required(VERSION 3.25...3.29) ]=============================================================================] list(APPEND CMAKE_MESSAGE_CONTEXT Template) +# Define basic parameters +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) +endif () project(Template VERSION 0.1.0 DESCRIPTION "CMake project template" @@ -41,11 +45,6 @@ include(FetchContent) include(CMakePackageConfigHelpers) include(GNUInstallDirs) -# Define basic parameters -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release) -endif () - #[=============================================================================[ # External packages # ]=============================================================================]