From 02ddbd293b0a8b531024500682bfef1a65548d33 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Thu, 19 Dec 2024 07:51:21 +0100 Subject: [PATCH] CMake: Enable configuration of CMAKE_BUILD_TYPE --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2d690a3..c374e767 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,8 @@ cmake_minimum_required(VERSION 3.16) message(STATUS "msh3: Configuration start...") project(msh3) +set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type on single-configuration generators") + option(MSH3_TOOL "Build tool" OFF) option(MSH3_TEST "Build tests" OFF) @@ -76,7 +78,6 @@ else() endif() set(QUIC_BUILD_SHARED ON CACHE BOOL "Builds MsQuic as a dynamic library") set(QUIC_ENABLE_LOGGING ON CACHE BOOL "Enable MsQuic logging") -set(CMAKE_BUILD_TYPE "Release") add_subdirectory(msquic) target_compile_features(msh3_headers INTERFACE cxx_std_20)