File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ option(BSONCXX_POLY_USE_SYSTEM_MNMLSTC "Obtain mnmlstc/core from system" OFF)
24
24
option (BSONCXX_POLY_USE_BOOST "Use boost for stdx polyfills" OFF )
25
25
option (BSONCXX_POLY_USE_STD "Use C++17 std library for stdx polyfills" OFF )
26
26
27
+ set (BSONCXX_OUTPUT_BASENAME "bsoncxx" CACHE STRING "Output bsoncxx library base name" )
28
+
27
29
# Count how many polyfill options are true-ish
28
30
set (BSONCXX_POLY_OPTIONS_SET 0 )
29
31
foreach (BSONCXX_POLY_OPTION ${BSONCXX_POLY_USE_MNMLSTC} ${BSONCXX_POLY_USE_STD_EXPERIMENTAL} ${BSONCXX_POLY_USE_BOOST} ${BSONCXX_POLY_USE_STD} )
@@ -120,11 +122,11 @@ endif()
120
122
include (BsoncxxUtil )
121
123
122
124
if (BSONCXX_BUILD_SHARED )
123
- bsoncxx_add_library (bsoncxx_shared "bsoncxx " SHARED )
125
+ bsoncxx_add_library (bsoncxx_shared "${BSONCXX_OUTPUT_BASENAME} " SHARED )
124
126
endif ()
125
127
126
128
if (BSONCXX_BUILD_STATIC )
127
- bsoncxx_add_library (bsoncxx_static "bsoncxx -static" STATIC )
129
+ bsoncxx_add_library (bsoncxx_static "${BSONCXX_OUTPUT_BASENAME} -static" STATIC )
128
130
endif ()
129
131
130
132
if (BSONCXX_BUILD_SHARED )
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ set(MONGOCXX_ABI_VERSION _noabi)
21
21
option (MONGOCXX_ENABLE_SSL "Enable SSL - if the underlying C driver offers it" ON )
22
22
option (MONGOCXX_ENABLE_SLOW_TESTS "Run slow tests when invoking the the test target" OFF )
23
23
24
+ set (MONGOCXX_OUTPUT_BASENAME "mongocxx" CACHE STRING "Output mongocxx library base name" )
25
+
24
26
set (MONGOCXX_VERSION_NO_EXTRA ${MONGOCXX_VERSION_MAJOR} .${MONGOCXX_VERSION_MINOR}.${MONGOCXX_VERSION_PATCH} )
25
27
set (MONGOCXX_VERSION ${MONGOCXX_VERSION_NO_EXTRA}${MONGOCXX_VERSION_EXTRA} )
26
28
message ("mongocxx version: ${MONGOCXX_VERSION} " )
@@ -138,12 +140,12 @@ include_directories(
138
140
include (MongocxxUtil )
139
141
140
142
if (MONGOCXX_BUILD_SHARED )
141
- mongocxx_add_library (mongocxx_shared "mongocxx " SHARED )
143
+ mongocxx_add_library (mongocxx_shared "${MONGOCXX_OUTPUT_BASENAME} " SHARED )
142
144
target_link_libraries (mongocxx_shared PUBLIC bsoncxx_shared )
143
145
endif ()
144
146
145
147
if (MONGOCXX_BUILD_STATIC )
146
- mongocxx_add_library (mongocxx_static "mongocxx -static" STATIC )
148
+ mongocxx_add_library (mongocxx_static "${MONGOCXX_OUTPUT_BASENAME} -static" STATIC )
147
149
target_link_libraries (mongocxx_static PUBLIC bsoncxx_static )
148
150
endif ()
149
151
You can’t perform that action at this time.
0 commit comments