From 890a064c8cfc7853b3a7adce83654b99ca16f25d Mon Sep 17 00:00:00 2001 From: Zhaoyilunnn Date: Wed, 11 Oct 2023 09:31:25 +0000 Subject: [PATCH] chore(build): make cmake build type configurable --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2800ccd..ee1910a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,11 @@ cmake_minimum_required(VERSION 3.14...3.22) project(qfvm LANGUAGES CXX C) -set (CMAKE_BUILD_TYPE Release) +if(NOT CMAKE_BUILD_TYPE) + message(STATUS "Build type not set - defaulting to Release") + set(CMAKE_BUILD_TYPE Release) +endif() + set(CMAKE_CXX_STANDARD 17) set(CMAKE_CUDA_ARCHITECTURES 70;75;80;90) if(SKBUILD)