From f0f9f285a4ce254ed1aad6bc5678d1ceb5f70cf1 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 3 Jun 2018 20:00:24 -0400 Subject: [PATCH] Set default build type to release Former-commit-id: c35386c26ffdbb50f55c1e64798cb91976f7e712 --- SuperBuild/CMakeLists.txt | 5 +++++ modules/CMakeLists.txt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/SuperBuild/CMakeLists.txt b/SuperBuild/CMakeLists.txt index 3b21da21..1aee12c3 100644 --- a/SuperBuild/CMakeLists.txt +++ b/SuperBuild/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.1) project(ODM-SuperBuild) +if (NOT CMAKE_BUILD_TYPE) + message(STATUS "No build type selected, default to Release") + set(CMAKE_BUILD_TYPE "Release") +endif() + # Setup SuperBuild root location set(SB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index e1afd164..5786f461 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,3 +1,8 @@ +if (NOT CMAKE_BUILD_TYPE) + message(STATUS "No build type selected, default to Release") + set(CMAKE_BUILD_TYPE "Release") +endif() + # Add ODM sub-modules add_subdirectory(odm_extract_utm) add_subdirectory(odm_georef)