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}")