Commit ce706da11c151dde7a41917557743d20081f9c97

Timothy Gu 2015-03-11T22:38:54

Merge pull request #10 from xantares/patch-5 set CMAKE_BUILD_TYPE default

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)