From f93cfa84fda4bd271678c12d30744a20c3333478 Mon Sep 17 00:00:00 2001 From: wangliu Date: Thu, 7 Jun 2018 18:20:44 +0800 Subject: [PATCH] modify code style --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3991c6fe6e..3128208259 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,9 @@ if(DEBUGING) else() message(STATUS "releasing") add_definitions(-fvisibility=hidden -fvisibility-inlines-hidden) - add_definitions(-fno-exceptions) + add_definitions(-DENABLE_EXCEPTION) + + # add_definitions(-fno-exceptions) endif() if(IS_MAC) @@ -114,4 +116,4 @@ endif() add_library(paddle-mobile SHARED ${PADDLE_MOBILE_CC} ${PADDLE_MOBILE_H}) -#add_subdirectory(test) +add_subdirectory(test) -- GitLab