feat default use Release mode
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 52s
linux-x64-gcc / linux-gcc (push) Failing after 51s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 54s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m2s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m11s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m7s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m34s

This commit is contained in:
tqcq 2023-12-16 01:41:16 +08:00
parent 4c022a51df
commit 50c854075d

View File

@ -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 "")