diff options
author | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2016-02-24 17:00:58 +0100 |
---|---|---|
committer | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2016-02-24 17:00:58 +0100 |
commit | ca22227089e9be0391c0d5532cab4b7ec64ab4ff (patch) | |
tree | 9b513de18061a9e92936d54000d3a66f68a36bb5 /cmake | |
parent | 4541f8900588a335f2d9387a5b03460deba68678 (diff) | |
download | caffeonacl-ca22227089e9be0391c0d5532cab4b7ec64ab4ff.tar.gz caffeonacl-ca22227089e9be0391c0d5532cab4b7ec64ab4ff.tar.bz2 caffeonacl-ca22227089e9be0391c0d5532cab4b7ec64ab4ff.zip |
CMake: Do not include "${PROJECT_BINARY_DIR}/include" with SYSTEM option
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.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ProtoBuf.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/ProtoBuf.cmake b/cmake/ProtoBuf.cmake index fc799bd3..73f647f5 100644 --- a/cmake/ProtoBuf.cmake +++ b/cmake/ProtoBuf.cmake @@ -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) |