Skip to content

Commit 69bb131

Browse files
committed
enable tests change
1 parent e57be7e commit 69bb131

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

source/upgrade.txt

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,16 @@ The v4.1 driver introduces the following breaking changes to the ABI:
145145

146146
.. note::
147147

148-
This does not affect users who compile with C++17 or newer and have not set ``BSONCXX_POLY_USE_IMPLS=ON``
148+
This does not affect users who compile with C++17 or newer and have not set
149+
``BSONCXX_POLY_USE_IMPLS=ON``
150+
151+
.. _version-4.1-enable-tests-config:
152+
153+
- Sets the ``ENABLE_TESTS`` configuration option to ``OFF`` by default,
154+
including for auto-downloaded versions of {+driver-short+}. To
155+
re-enable building test targets, you must set ``ENABLE_TESTS`` to ``ON``.
156+
To include test targets in the "all" target, you must also set the
157+
``BUILD_TESTING`` option to ``ON``.
149158

150159
.. _version-4.0-breaking-changes:
151160

@@ -170,10 +179,11 @@ The v4.0 driver introduces the following breaking changes to the build system:
170179
- Drops support for the ``MONGOCXX_OVERRIDE_DEFAULT_INSTALL_PREFIX`` configuration
171180
option. Default CMake behavior for ``CMAKE_INSTALL_PREFIX`` is now respected.
172181

173-
- Sets the ``ENABLE_TESTS`` configuration option to ``OFF`` by default. To
174-
re-enable building test targets, you must set ``ENABLE_TESTS`` to ``ON``.
175-
To include test targets in the "all" target, you must also set the
176-
``BUILD_TESTING`` option to ``ON``.
182+
.. note::
183+
184+
The :ref:`ENABLE_TESTS configuration option change
185+
<version-4.1-enable-tests-config>` was originally announced for v4.0, but
186+
instead was released with v4.1.
177187

178188
.. _version-4.0-api-breaking:
179189

source/whats-new.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ The v4.1 driver release includes the following new features:
5050
- :manual:`Binary Data BSON Types </reference/bson-types/#binary-data>` in the {+mdb-server+} manual
5151
- :github:`BSON Binary Vector </mongodb/mongo-cxx-driver/blob/master/examples/bsoncxx/bson_binary_vector.cpp>` usage example on GitHub
5252
- Fixes the :ref:`C driver API version bug <v4.0-cmake-api-version-bug>` noted in the v4.0 release
53+
- Adds a change to the ``ENABLE_TESTS`` configuration option default option that
54+
was originally announced for v4.0. For more information, see the :ref:`breaking
55+
change description <version-4.1-enable-tests-config>` on the Upgrade page.
5356

5457
To learn more about this release, see the
5558
`v4.1 Release Notes <https://github.com/mongodb/mongo-cxx-driver/releases/tag/r4.1.0>`__

0 commit comments

Comments
 (0)