提交 4bde43dd 编写于 作者: L liuruilong

revert cmake debug switch

上级 cab6d8c6
...@@ -5,22 +5,19 @@ option(DEBUGING "enable debug mode" OFF) ...@@ -5,22 +5,19 @@ option(DEBUGING "enable debug mode" OFF)
option(USE_OPENMP "openmp support" OFF) option(USE_OPENMP "openmp support" OFF)
option(USE_EXCEPTION "use std exception" OFF) option(USE_EXCEPTION "use std exception" OFF)
set(CMAKE_BUILD_TYPE Debug)
if (DEBUGING) if (DEBUGING)
set(CMAKE_BUILD_TYPE Debug)
else() else()
# set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif () endif ()
add_definitions(-DPADDLE_MOBILE_DEBUG)
if(DEBUGING)
# message(STATUS "debuging")
if(DEBUGING)
message(STATUS "debuging")
add_definitions(-DPADDLE_MOBILE_DEBUG)
else() else()
# message(STATUS "releasing") message(STATUS "releasing")
# add_definitions(-fvisibility=hidden -fvisibility-inlines-hidden) add_definitions(-fvisibility=hidden -fvisibility-inlines-hidden)
endif() endif()
if (USE_EXCEPTION) if (USE_EXCEPTION)
...@@ -28,7 +25,6 @@ if (USE_EXCEPTION) ...@@ -28,7 +25,6 @@ if (USE_EXCEPTION)
add_definitions(-fexceptions) add_definitions(-fexceptions)
else() else()
add_definitions(-fno-exceptions) add_definitions(-fno-exceptions)
endif () endif ()
if(IS_MAC) if(IS_MAC)
...@@ -122,11 +118,10 @@ else () ...@@ -122,11 +118,10 @@ else ()
add_definitions(-DTRANSPOSE_OP) add_definitions(-DTRANSPOSE_OP)
endif() endif()
add_library(paddle-mobile SHARED ${PADDLE_MOBILE_CC} ${PADDLE_MOBILE_H}) add_library(paddle-mobile SHARED ${PADDLE_MOBILE_CC} ${PADDLE_MOBILE_H})
add_subdirectory(test)
if(DEBUGING) if(DEBUGING)
add_subdirectory(test)
endif() endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册