Skip to content

Commit

Permalink
CMake: Do not include "${PROJECT_BINARY_DIR}/include" with SYSTEM option
Browse files Browse the repository at this point in the history
This is important for the include order. Without this patch, a
previously installed caffe.pb.h might be included instead of the one
that is generated during the build.
  • Loading branch information
olesalscheider committed Feb 24, 2016
1 parent 4541f89 commit ca22227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/ProtoBuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif()

# place where to generate protobuf sources
set(proto_gen_folder "${PROJECT_BINARY_DIR}/include/caffe/proto")
include_directories(SYSTEM "${PROJECT_BINARY_DIR}/include")
include_directories("${PROJECT_BINARY_DIR}/include")

set(PROTOBUF_GENERATE_CPP_APPEND_PATH TRUE)

Expand Down

0 comments on commit ca22227

Please sign in to comment.