From 2c481cd581487be1005431f5163a1187202b4160 Mon Sep 17 00:00:00 2001 From: randymcmillan Date: Tue, 1 Aug 2023 20:31:16 -0400 Subject: [PATCH] CMakeLists.txt: Debug/Release CMAKE_BUILD_TYPE --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d42756..a566d58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)