CMake: Do not include "${PROJECT_BINARY_DIR}/include" with SYSTEM option
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Wed, 24 Feb 2016 16:00:58 +0000 (17:00 +0100)
committerNiels Ole Salscheider <niels_ole@salscheider-online.de>
Wed, 24 Feb 2016 16:00:58 +0000 (17:00 +0100)
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.

cmake/ProtoBuf.cmake

index fc799bd..73f647f 100644 (file)
@@ -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)