Skip to content

Commit

Permalink
Add cmake option protobuf_INSTALL for installation files (#7123)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcooky committed Feb 2, 2022
1 parent a9cf69a commit 55645ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/CMakeLists.txt
Expand Up @@ -41,6 +41,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES Intel)
endif()

# Options
option(protobuf_INSTALL "Install protobuf binaries and files" ON)
if(WITH_PROTOC)
set(protobuf_PROTOC_EXE ${WITH_PROTOC} CACHE FILEPATH "Protocol Buffer Compiler executable" FORCE)
endif()
Expand Down Expand Up @@ -305,7 +306,9 @@ if (protobuf_BUILD_CONFORMANCE)
include(conformance.cmake)
endif (protobuf_BUILD_CONFORMANCE)

include(install.cmake)
if (protobuf_INSTALL)
include(install.cmake)
endif (protobuf_INSTALL)

if (protobuf_BUILD_EXAMPLES)
include(examples.cmake)
Expand Down

0 comments on commit 55645ca

Please sign in to comment.