mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 21:52:18 +00:00
remove stall reference to version
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# This is the legacy minimum version flatbuffers supported for a while.
|
# This is the legacy minimum version flatbuffers supported for a while.
|
||||||
cmake_minimum_required(VERSION 2.8.12)
|
cmake_minimum_required(VERSION 2.8.12...3.22.1)
|
||||||
|
|
||||||
# CMake version 3.16 is the 'de-facto' minimum version for flatbuffers. If the
|
# CMake version 3.16 is the 'de-facto' minimum version for flatbuffers. If the
|
||||||
# current cmake is older than this, warn the user and include the legacy file to
|
# current cmake is older than this, warn the user and include the legacy file to
|
||||||
@@ -15,18 +15,19 @@ if(CMAKE_VERSION VERSION_LESS 3.16)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Attempt to read the current version of flatbuffers by looking at the latest tag.
|
||||||
|
include(CMake/Version.cmake)
|
||||||
|
|
||||||
if (POLICY CMP0048)
|
if (POLICY CMP0048)
|
||||||
cmake_policy(SET CMP0048 NEW)
|
cmake_policy(SET CMP0048 NEW)
|
||||||
project(FlatBuffers
|
project(FlatBuffers
|
||||||
DESCRIPTION "Flatbuffers serialization library"
|
DESCRIPTION "Flatbuffers serialization library"
|
||||||
VERSION 2.0.0
|
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
else()
|
else()
|
||||||
project(FlatBuffers)
|
project(FlatBuffers)
|
||||||
endif (POLICY CMP0048)
|
endif (POLICY CMP0048)
|
||||||
|
|
||||||
include(CMake/Version.cmake)
|
|
||||||
|
|
||||||
# generate compile_commands.json
|
# generate compile_commands.json
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user