From a18a18bc86d3ee18a8440ea9241bae71f1e26bf6 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Mon, 10 Jul 2023 11:09:47 -0700 Subject: [PATCH] Set the flag both ways. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index edd524c4..047b0ec3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ if(${Protobuf_FOUND}) else() find_package(Protobuf REQUIRED) include_directories(${Protobuf_INCLUDE_DIRS}) + set(PROTOBUF_LOADED_AS_CONFIG OFF) endif() list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")