mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 13:31:02 +08:00
cmake: Remove BUILD_PROTO3, HAVE_PROTO3
This commit is contained in:
parent
e08fe62565
commit
824a7fed75
@ -9,7 +9,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)
|
|||||||
PROJECT(protobuf-c)
|
PROJECT(protobuf-c)
|
||||||
|
|
||||||
#options
|
#options
|
||||||
option(BUILD_PROTO3 "BUILD_PROTO3" ON)
|
|
||||||
option(BUILD_PROTOC "Build protoc-gen-c" ON)
|
option(BUILD_PROTOC "Build protoc-gen-c" ON)
|
||||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
option(BUILD_TESTS "Build tests" ON)
|
option(BUILD_TESTS "Build tests" ON)
|
||||||
@ -73,9 +72,6 @@ endif (MSVC AND NOT BUILD_SHARED_LIBS)
|
|||||||
FIND_PACKAGE(Protobuf REQUIRED)
|
FIND_PACKAGE(Protobuf REQUIRED)
|
||||||
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
|
||||||
|
|
||||||
if (BUILD_PROTO3)
|
|
||||||
ADD_DEFINITIONS(-DHAVE_PROTO3)
|
|
||||||
endif()
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if (MSVC AND NOT BUILD_SHARED_LIBS)
|
if (MSVC AND NOT BUILD_SHARED_LIBS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user