From c215b3e946f9f45a35ba9ea7abba7087909581e6 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Tue, 26 Nov 2019 12:35:56 +0100 Subject: [PATCH] Fix CMake warning in GRPC code --- ApplicationCode/CMakeLists.txt | 2 +- ApplicationCode/GrpcInterface/CMakeLists.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/CMakeLists.txt b/ApplicationCode/CMakeLists.txt index 5d9401515d..8aba9346fc 100644 --- a/ApplicationCode/CMakeLists.txt +++ b/ApplicationCode/CMakeLists.txt @@ -337,7 +337,7 @@ if (MSVC) set( EXE_FILES WIN32) if (RESINSIGHT_ENABLE_GRPC) # GRPC generates a lot of harmless warnings on MSVC - set_source_files_properties(${GRPC_CPP_SOURCES} ${GRPC_UNIT_TEST_SOURCE_FILES} PROPERTIES COMPILE_FLAGS "/wd4251 /wd4702 /wd4005 /wd4244 /wd4125") + set_source_files_properties(${GRPC_CPP_SOURCES} ${GRPC_UNIT_TEST_SOURCE_FILES} PROPERTIES COMPILE_FLAGS "/wd4251 /wd4702 /wd4005 /wd4244 /wd4125 /wd4267") endif(RESINSIGHT_ENABLE_GRPC) elseif (APPLE) set( EXE_FILES MACOSX_BUNDLE) diff --git a/ApplicationCode/GrpcInterface/CMakeLists.cmake b/ApplicationCode/GrpcInterface/CMakeLists.cmake index d467b67587..7fa9cbe241 100644 --- a/ApplicationCode/GrpcInterface/CMakeLists.cmake +++ b/ApplicationCode/GrpcInterface/CMakeLists.cmake @@ -33,7 +33,7 @@ if (MSVC) # Find Protobuf installation # Looks for protobuf-config.cmake file installed by Protobuf's cmake installation. - set(protobuf_MODULE_COMPATIBLE ON CACHE DBOOL "") + set(protobuf_MODULE_COMPATIBLE ON) find_package(Protobuf CONFIG 3.0 QUIET) if (Protobuf_FOUND) message(STATUS "Using protobuf ${protobuf_VERSION}")