From 7568c9073143edfb3bc6c0bf4263be704cb96cb5 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 12 Dec 2016 11:29:03 +0100 Subject: Introduces and fixes warnings in the C libraries. --- libcmix-protobuf/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcmix-protobuf/CMakeLists.txt') 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 -- cgit v1.2.3-70-g09d2