mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +08:00
mdbx-cmake: fix version inside CMakeLists.txt
This resolves https://github.com/leo-yuriev/libmdbx/issues/32
This commit is contained in:
parent
d127c28e83
commit
47cc2b1c10
@ -1,17 +1,22 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.7)
|
cmake_minimum_required(VERSION 2.8.7)
|
||||||
|
|
||||||
set(TARGET mdbx)
|
set(TARGET mdbx)
|
||||||
project(${TARGET})
|
project(${TARGET})
|
||||||
|
|
||||||
# FIXME/TODO: Same as https://github.com/leo-yuriev/libfpta
|
message(WARNING "
|
||||||
set(MDBX_VERSION_MAJOR 0)
|
***************************************************************
|
||||||
set(MDBX_VERSION_MINOR 0)
|
MDBX is under active development, database format and API
|
||||||
set(MDBX_VERSION_PATCH 0)
|
aren't stable at least until 2018Q3. New version won't be
|
||||||
set(MDBX_VERSION_STRING ${MDBX_VERSION_MAJOR}.${MDBX_VERSION_MINOR}.${MDBX_VERSION_PATCH})
|
backwards compatible. Main focus of the rework is to provide
|
||||||
|
clear and robust API and new features.
|
||||||
|
***************************************************************
|
||||||
|
")
|
||||||
|
|
||||||
add_definitions(-DMDBX_VERSION_MAJOR=${MDBX_VERSION_MAJOR})
|
set(MDBX_VERSION_MAJOR 0)
|
||||||
add_definitions(-DMDBX_VERSION_MINOR=${MDBX_VERSION_MINOR})
|
set(MDBX_VERSION_MINOR 1)
|
||||||
add_definitions(-DMDBX_VERSION_PATCH=${MDBX_VERSION_PATCH})
|
set(MDBX_VERSION_RELEASE 3)
|
||||||
|
set(MDBX_VERSION_REVISION 1)
|
||||||
|
|
||||||
|
set(MDBX_VERSION_STRING ${MDBX_VERSION_MAJOR}.${MDBX_VERSION_MINOR}.${MDBX_VERSION_RELEASE})
|
||||||
|
|
||||||
enable_language(C)
|
enable_language(C)
|
||||||
enable_language(CXX)
|
enable_language(CXX)
|
||||||
@ -34,7 +39,6 @@ else()
|
|||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-constant-logical-operand")
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user