From 8964641901ae57c621b9aba0f787caa5ccce2c98 Mon Sep 17 00:00:00 2001
From: mmoll <mmoll@253336fb-580f-4252-a368-f3cef5a2a82b>
Date: Tue, 18 Sep 2012 13:07:21 +0000
Subject: [PATCH] allow user to specify build type

git-svn-id: https://kforge.ros.org/fcl/fcl_ros@197 253336fb-580f-4252-a368-f3cef5a2a82b
---
 trunk/fcl/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/trunk/fcl/CMakeLists.txt b/trunk/fcl/CMakeLists.txt
index 712701ec..4ef49d27 100644
--- a/trunk/fcl/CMakeLists.txt
+++ b/trunk/fcl/CMakeLists.txt
@@ -1,7 +1,11 @@
 cmake_minimum_required(VERSION 2.8)
 project(fcl CXX C)
 
-set(CMAKE_BUILD_TYPE Release)
+# set the default build type
+if (NOT CMAKE_BUILD_TYPE)
+   set(CMAKE_BUILD_TYPE Release)
+endif()
+
 set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
 
-- 
GitLab