Do not override optimization level
authorNicholas Guriev <guriev-ns@ya.ru>
Thu, 25 Jul 2019 05:58:48 +0000 (08:58 +0300)
committerHermet Park <hermetpark@gmail.com>
Fri, 9 Aug 2019 08:54:18 +0000 (17:54 +0900)
CMakeLists.txt

index 2bb73a5..375a79d 100644 (file)
@@ -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