aboutsummaryrefslogtreecommitdiff
path: root/libcmix-protobuf/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-12 11:29:03 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-15 09:45:30 +0100
commit7568c9073143edfb3bc6c0bf4263be704cb96cb5 (patch)
treeb6c24648caaa813920c28d4b483fc320bf1567ed /libcmix-protobuf/CMakeLists.txt
parent8eef4dde28da8db00f32d4a7acd95ddbb728d138 (diff)
downloadcmix-7568c9073143edfb3bc6c0bf4263be704cb96cb5.tar.gz
cmix-7568c9073143edfb3bc6c0bf4263be704cb96cb5.tar.bz2
cmix-7568c9073143edfb3bc6c0bf4263be704cb96cb5.zip
Introduces and fixes warnings in the C libraries.
Diffstat (limited to 'libcmix-protobuf/CMakeLists.txt')
-rw-r--r--libcmix-protobuf/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcmix-protobuf/CMakeLists.txt b/libcmix-protobuf/CMakeLists.txt
index 29dbb32..725cbf3 100644
--- a/libcmix-protobuf/CMakeLists.txt
+++ b/libcmix-protobuf/CMakeLists.txt
@@ -16,4 +16,12 @@ target_include_directories(cmix-protobuf
PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
)
+target_compile_definitions(cmix-protobuf
+ PUBLIC PROTOBUF_INLINE_NOT_IN_HEADERS=0
+)
+
+target_compile_options(cmix-protobuf
+ PRIVATE -Wno-unused-parameter
+)
+
target_link_libraries(cmix-protobuf ${Protobuf_LIBRARIES}) \ No newline at end of file