Skip to content

Commit

Permalink
[Debug] Try to move CMAKE_BUILD_TYPE before project
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Sep 2, 2024
1 parent c0123ae commit 6a4ee2f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 #
]=============================================================================]
Expand Down

0 comments on commit 6a4ee2f

Please sign in to comment.