File tree 2 files changed +8
-5
lines changed 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
17
17
include (GlowDefaults)
18
18
include (SanitizerSupport)
19
19
20
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti" )
20
21
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -march=native -ffast-math" )
21
22
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -fno-omit-frame-pointer -O0" )
22
23
Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ find_package(Protobuf REQUIRED)
3
3
include_directories (${PROTOBUF_INCLUDE_DIRS} )
4
4
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
5
5
6
+ add_definitions (-DGOOGLE_PROTOBUF_NO_RTTI)
7
+
6
8
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS caffe.proto)
7
9
8
10
add_library (Importer
9
- Caffe2.cpp
10
- ${PROTO_SRCS}
11
- ${PROTO_HDRS} )
11
+ Caffe2.cpp
12
+ ${PROTO_SRCS}
13
+ ${PROTO_HDRS} )
12
14
target_link_libraries (Importer
13
15
PRIVATE
14
- IR
15
- ${PROTOBUF_LIBRARY} )
16
+ IR
17
+ ${PROTOBUF_LIBRARY} )
16
18
You can’t perform that action at this time.
0 commit comments