Skip to content

Commit 586794c

Browse files
committed
CXX-803 Set a funny ABI since it isn't stable for 3.0.0
1 parent 35a9b04 commit 586794c

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

src/bsoncxx/CMakeLists.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ find_package(LibBSON 1.3.0 REQUIRED)
55

66
# Update these as needed.
77
# TODO: read from file
8-
set(BSONCXX_VERSION_MAJOR 0)
9-
set(BSONCXX_VERSION_MINOR 3)
8+
set(BSONCXX_VERSION_MAJOR 3)
9+
set(BSONCXX_VERSION_MINOR 0)
1010
set(BSONCXX_VERSION_PATCH 0)
11-
set(BSONCXX_VERSION_EXTRA "-pre")
12-
set(BSONCXX_ABI_VERSION 0)
11+
set(BSONCXX_VERSION_EXTRA "-rc0-pre")
12+
set(BSONCXX_ABI_VERSION _noabi)
1313

14-
set(BSONCXX_VERSION ${BSONCXX_VERSION_MAJOR}.${BSONCXX_VERSION_MINOR}.${BSONCXX_VERSION_PATCH})
14+
set(BSONCXX_VERSION ${BSONCXX_VERSION_MAJOR}.${BSONCXX_VERSION_MINOR}.${BSONCXX_VERSION_PATCH}${BSONCXX_VERSION_EXTRA})
1515
set(BSONCXX_INLINE_NAMESPACE "v${BSONCXX_ABI_VERSION}")
16-
set(BSONCXX_DIRECTORY_PREFIX "v${BSONCXX_VERSION_MAJOR}.${BSONCXX_VERSION_MINOR}")
17-
set(BSONCXX_HEADER_INSTALL_DIR "include/bsoncxx/${BSONCXX_DIRECTORY_PREFIX}" CACHE INTERNAL "")
16+
set(BSONCXX_HEADER_INSTALL_DIR "include/bsoncxx/${BSONCXX_INLINE_NAMESPACE}" CACHE INTERNAL "")
1817

1918
# TODO: Not all combinations of options are valid, and USE_STD is only valid
2019
# for C++14 compiles. Add logic to validate options and configure checks to validate

src/bsoncxx/config/libbsoncxx.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Description: The MongoDB C++11 BSON Library
77
URL: http://github.com/mongodb/mongo-cxx-driver
88
Version: @BSONCXX_VERSION@
99
Requires.private: libbson-@LIBBSON_REQUIRED_ABI_VERSION@
10-
Cflags: -I${includedir}/bsoncxx/@BSONCXX_DIRECTORY_PREFIX@
10+
Cflags: -I${includedir}/bsoncxx/@BSONCXX_INLINE_NAMESPACE@
1111
Libs: -L${libdir} -lbsoncxx

src/mongocxx/CMakeLists.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ find_package(LibMongoC 1.3.0 REQUIRED)
88

99
# Update these as needed.
1010
# TODO: read from file
11-
set(MONGOCXX_VERSION_MAJOR 0)
12-
set(MONGOCXX_VERSION_MINOR 3)
11+
set(MONGOCXX_VERSION_MAJOR 3)
12+
set(MONGOCXX_VERSION_MINOR 0)
1313
set(MONGOCXX_VERSION_PATCH 0)
14-
set(MONGOCXX_VERSION_EXTRA "-pre")
15-
set(MONGOCXX_ABI_VERSION 0)
14+
set(MONGOCXX_VERSION_EXTRA "-rc0-pre")
15+
set(MONGOCXX_ABI_VERSION _noabi)
1616

17-
set(MONGOCXX_VERSION ${MONGOCXX_VERSION_MAJOR}.${MONGOCXX_VERSION_MINOR}.${MONGOCXX_VERSION_PATCH})
17+
set(MONGOCXX_VERSION ${MONGOCXX_VERSION_MAJOR}.${MONGOCXX_VERSION_MINOR}.${MONGOCXX_VERSION_PATCH}${MONGOCXX_VERSION_EXTRA})
1818
set(MONGOCXX_INLINE_NAMESPACE "v${MONGOCXX_ABI_VERSION}")
19-
set(MONGOCXX_DIRECTORY_PREFIX "v${MONGOCXX_VERSION_MAJOR}.${MONGOCXX_VERSION_MINOR}")
20-
set(MONGOCXX_HEADER_INSTALL_DIR "include/mongocxx/${MONGOCXX_DIRECTORY_PREFIX}" CACHE INTERNAL "")
19+
set(MONGOCXX_HEADER_INSTALL_DIR "include/mongocxx/${MONGOCXX_INLINE_NAMESPACE}" CACHE INTERNAL "")
2120

2221
add_subdirectory(config)
2322

src/mongocxx/config/libmongocxx.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Version: @MONGOCXX_VERSION@
99
Requires.private: libbson-@LIBBSON_REQUIRED_ABI_VERSION@
1010
Requires.private: libmongoc-@LIBMONGOC_REQUIRED_ABI_VERSION@
1111
Requires: libbsoncxx
12-
Cflags: -I${includedir}/mongocxx/@MONGOCXX_DIRECTORY_PREFIX@
12+
Cflags: -I${includedir}/mongocxx/@MONGOCXX_INLINE_NAMESPACE@
1313
Libs: -L${libdir} -lmongocxx

0 commit comments

Comments
 (0)