From 50c854075defccc319af377ac00bf81f04983208 Mon Sep 17 00:00:00 2001 From: tqcq Date: Sat, 16 Dec 2023 01:41:16 +0800 Subject: [PATCH] feat default use Release mode --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5311b7f..42e7eaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,11 @@ set(CMAKE_CXX_EXTENSIONS OFF) option(ULIB_BUILD_TESTS "Build tests" OFF) option(ULIB_SHARED_LIB "Build shared library" OFF) + +if (NOT CMAKE_BUILD_TYPE) + set(MY_CMAKE_BUILD_TYPE "Release") +endif() + set(CMAKE_POSITION_INDEPENDENT_CODE ON) if (ULIB_SHARED_LIB) add_library(${PROJECT_NAME} SHARED "")