Fix CMake conflict

pull/5921/head
Hao Nguyen 6 years ago
parent 81567d89a9
commit d47c3e9258
  1. 13
      cmake/CMakeLists.txt

@ -80,24 +80,11 @@ string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\5"
message(STATUS "${protobuf_VERSION_PRERELEASE}")
message(STATUS "${protobuf_VERSION_PRERELEASE}")
# Package version
set(protobuf_VERSION
"${protobuf_VERSION_MAJOR}.${protobuf_VERSION_MINOR}.${protobuf_VERSION_PATCH}")
if(protobuf_VERSION_PRERELEASE)
<<<<<<<
=======
set(protobuf_VERSION "${protobuf_VERSION}.${protobuf_VERSION_PRERELEASE}")
else()
set(protobuf_VERSION "${protobuf_VERSION}.0")
endif()
message(STATUS "${protobuf_VERSION}")
if(protobuf_VERBOSE)
>>>>>>>
set(protobuf_VERSION "${protobuf_VERSION}.${protobuf_VERSION_PRERELEASE}")
else()
set(protobuf_VERSION "${protobuf_VERSION}.0")

Loading…
Cancel
Save