diff options
author | xantares <xantares09@hotmail.com> | 2015-03-12 06:37:29 +0100 |
---|---|---|
committer | xantares <xantares09@hotmail.com> | 2015-03-12 06:37:29 +0100 |
commit | 473386e398d143bec1ad1f34b001382ec8061e65 (patch) | |
tree | 5a772c3e25ab42ea5631481d40ca86e469f1c780 | |
parent | 081924eedd4db30fc5ee70ab2158135b2a32eaf6 (diff) | |
download | dlfcn-win32-473386e398d143bec1ad1f34b001382ec8061e65.tar.gz dlfcn-win32-473386e398d143bec1ad1f34b001382ec8061e65.tar.bz2 dlfcn-win32-473386e398d143bec1ad1f34b001382ec8061e65.zip |
set CMAKE_BUILD_TYPE default
it's used to set release flags
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e8731d2..6dcf8a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,7 +1,11 @@ | |||
1 | project (dlfcn C) | ||
2 | |||
3 | cmake_minimum_required(VERSION 2.8) | 1 | cmake_minimum_required(VERSION 2.8) |
4 | 2 | ||
3 | if (NOT DEFINED CMAKE_BUILD_TYPE) | ||
4 | set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type") | ||
5 | endif () | ||
6 | |||
7 | project (dlfcn C) | ||
8 | |||
5 | option(BUILD_SHARED_LIBS "shared/static libs" ON) | 9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) |
6 | option(USE_WINE "use wine for test" ON) | 10 | option(USE_WINE "use wine for test" ON) |
7 | option(BUILD_TESTS "tests?" OFF) | 11 | option(BUILD_TESTS "tests?" OFF) |