Commit 473386e398d143bec1ad1f34b001382ec8061e65

xantares 2015-03-12T06:37:29

set CMAKE_BUILD_TYPE default it's used to set release flags

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8731d2..6dcf8a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,11 @@
-project (dlfcn C)
-
 cmake_minimum_required(VERSION 2.8)
 
+if (NOT DEFINED CMAKE_BUILD_TYPE)
+  set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type")
+endif ()
+
+project (dlfcn C)
+
 option(BUILD_SHARED_LIBS "shared/static libs" ON) 
 option(USE_WINE "use wine for test" ON)
 option(BUILD_TESTS "tests?" OFF)