projects
/
mussa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
152cc82
)
default to building a debug version
author
Diane Trout
<diane@caltech.edu>
Wed, 12 Apr 2006 23:18:13 +0000
(23:18 +0000)
committer
Diane Trout
<diane@caltech.edu>
Wed, 12 Apr 2006 23:18:13 +0000
(23:18 +0000)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index d9a0563c61bd24934d33ac28de775e1b6a18ee99..851ed752513309a34a16674285a428725862eafd 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-4,8
+4,11
@@
ENABLE_TESTING()
# try to include our cmake modules
SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/makelib)
# try to include our cmake modules
SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/makelib)
-# debug it!
-SET (CXX_FLAGS "-g")
+IF(NOT CMAKE_BUILD_TYPE)
+ SET (CMAKE_BUILD_TYPE Debug CACHE STRING
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
+ FORCE)
+ENDIF(NOT CMAKE_BUILD_TYPE)
# all of our source files al relative to the root of our project
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
# all of our source files al relative to the root of our project
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})