Cmake changes for default build

Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/14d9a44e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/14d9a44e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/14d9a44e

Branch: refs/heads/reorder-partitioned-hash-join
Commit: 14d9a44eee07668580c15dbc14e37727fb6f3898
Parents: c72aaf0
Author: cramja <marc.spehlm...@gmail.com>
Authored: Fri Mar 3 17:04:44 2017 -0600
Committer: cramja <marc.spehlm...@gmail.com>
Committed: Sun Mar 5 11:56:31 2017 -0600

----------------------------------------------------------------------
 CMakeLists.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/14d9a44e/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9cd02be..8ac374c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,6 +24,11 @@ include(CheckCCompilerFlag)
 include(CheckCXXCompilerFlag)
 include(CheckCXXSourceCompiles)
 
+if(NOT CMAKE_BUILD_TYPE)
+  set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
+      "Choose the type of build, options are: Debug Release RelWithDebInfo 
MinSizeRel." FORCE)
+endif(NOT CMAKE_BUILD_TYPE)
+
 if (WIN32)
   # Make Windows compilers shut up about using standard libc functions.
   set_property(
@@ -49,7 +54,7 @@ else()
   option(ENABLE_HDFS "Enable HDFS FileManager" OFF)
 endif()
 
-if (UNIX AND NOT CYGWIN)
+if (UNIX AND NOT CYGWIN AND NOT APPLE)
   option(USE_TCMALLOC "Use tcmalloc (Google's thread-cacheing malloc) instead 
of system-provided malloc" ON)
 else()
   option(USE_TCMALLOC "Use tcmalloc (Google's thread-cacheing malloc) instead 
of system-provided malloc" OFF)

Reply via email to