From bf1e9fe4ad557d41bb4ff98ac410970f5ea60241 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Thu, 15 Apr 2021 12:41:31 +0100 Subject: [PATCH] fix_1558_cmake_build_type --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4154af7..3da474ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,11 @@ project(exiv2 # use TWEAK to categorize the build # 1.00.0.29 = RC2 Development LANGUAGES CXX ) + +if(NOT CMAKE_BUILD_TYPE) + set (CMAKE_BUILD_TYPE Release) +endif() + include(cmake/mainSetup.cmake REQUIRED) # options and their default values