From 5d2052e77fb21d1c948a4e9be7b2bd44033aa9dd Mon Sep 17 00:00:00 2001 From: xantares Date: Tue, 1 Sep 2015 08:55:53 +0200 Subject: [PATCH] set default cmake build type --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf43cbe..b6514e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,11 @@ -PROJECT(libnfc C) -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +cmake_minimum_required (VERSION 2.6) + +if (NOT DEFINED CMAKE_BUILD_TYPE) + set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type") +endif () + +project (libnfc C) + SET(VERSION_MAJOR "1") SET(VERSION_MINOR "7") SET(VERSION_PATCH "1")