CMakeLists.txt: Debug/Release CMAKE_BUILD_TYPE

This commit is contained in:
randymcmillan 2023-08-01 20:31:16 -04:00
parent 93c9616d9c
commit 2c481cd581
No known key found for this signature in database
GPG Key ID: 85495A938B7F78DF
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ else()
cmake_minimum_required(VERSION 3.15)
endif()
set(CMAKE_BUILD_TYPE Debug)
option(BUILD_RELEASE "BUILD_RELEASE" ON)
if(BUILD_RELEASE)
set(CMAKE_BUILD_TYPE Release)
endif()
project (nostril C)
include_directories(${CMAKE_SOURCE_DIR}/ext/secp256k1/include)