From: Nicholas Guriev Date: Thu, 25 Jul 2019 05:58:48 +0000 (+0300) Subject: Do not override optimization level X-Git-Tag: accepted/tizen/unified/20190818.221648~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5f0898aa463c12cad2757b8ff3da1ab6e6b78b2;p=platform%2Fcore%2Fuifw%2Flottie-player.git Do not override optimization level --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bb73a5..375a79d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ cmake_minimum_required( VERSION 3.3 ) #declare project project( rlottie VERSION 0.0.1 LANGUAGES C CXX ASM) +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE MinSizeRel) +endif() + add_definitions(-DLOT_BUILD) #declare target @@ -38,7 +42,6 @@ target_compile_options(rlottie PUBLIC PRIVATE -std=c++14 - -Os -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables