aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-08 11:28:44 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-08 11:28:44 +0900
commit6a3569b81304bb2e64dce923ba52d82c701356fa (patch)
treef60cf847ae40b31b3c26230f9db2028ea879b789
parent3112266f448e582b06d46034748fc80d71e4d7b1 (diff)
Remove the optional definition of debug
To be simple, remove the option for debug. Debug option is set by only CMAKE_BUILD_TYPE. Change-Id: Ie23062eb31ba6b084a388ef33848c5024d84c668 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt5
2 files changed, 0 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b7be72e..695186d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,7 +31,6 @@ INCLUDE(FindPkgConfig)
link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined)
set(CMAKE_BUILD_TYPE Debug)
-add_definitions(-DDEBUGMODE)
add_subdirectory(src)
add_subdirectory(conf)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7a29782..aa69b85 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -40,11 +40,6 @@ link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined)
add_library(${TARGETS_SMBINDER} MODULE ${binding_sm_sources})
target_compile_options(${TARGETS_SMBINDER} PRIVATE ${sm_binding_depends_CFLAGS})
-if(DEFINED DEBUGMODE)
- target_compile_options(${TARGETS_SMBINDER} PRIVATE -g -O0)
-else(DEFINED DEBUGMODE)
- target_compile_options(${TARGETS_SMBINDER} PRIVATE -g -O2)
-endif(DEFINED DEBUGMODE)
target_include_directories(${TARGETS_SMBINDER} PRIVATE ${sm_binding_depends_INCLUDE_DIRS})
target_link_libraries(${TARGETS_SMBINDER} ${CMAKE_THREAD_LIBS_INIT} ${link_libraries} ${sm_binding_depends_LIBRARIES})