From d8b16766f5e0e5d708f1ef26a051142dfcab9d2a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 7 Jan 2021 00:02:33 +0100 Subject: [PATCH] Force Release build type if none was specified --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08c82dfcf..bdecfc7d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.16) project(imhex VERSION 1.5.0) +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release" CACHE FORCE) +endif(NOT CMAKE_BUILD_TYPE) + set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") option (CREATE_PACKAGE "Create a package with CPack" OFF)