Skip to content

Commit b03ba5e

Browse files
committed
Let MrDocs compile the code as C++17
Reason: Getting the noexcept specifications introduced in "Reflect some noexcept specifications of std::vector in dynamic_bitset".
1 parent ab3d986 commit b03ba5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ if (DYNAMIC_BITSET_MRDOCS_BUILD)
4444
# Create a custom target for MrDocs.
4545
add_library(dynamic_bitset_mrdocs_target ${TEMP_CPP_FILE})
4646

47+
# This is to get some noexcept specifications which are only added
48+
# if the code is compiled as C++17 or later.
49+
set_target_properties(dynamic_bitset_mrdocs_target PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES)
50+
4751
# Set any other target properties here.
4852
target_include_directories(dynamic_bitset_mrdocs_target PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
4953
target_link_libraries(dynamic_bitset_mrdocs_target PRIVATE boost_dynamic_bitset)

0 commit comments

Comments
 (0)