mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
build/cmake: support c++ other than 17
This commit is contained in:
1 parent
6b8c3ea581
commit
18df23bd50
1 file changed
+3
-1
+3
-1
@@ -59,7 +59,9 @@ if (DOXYGEN_FOUND)
|
||||
option (OPENDHT_DOCUMENTATION "Create and install the HTML based API documentation (requires Doxygen)" ${DOXYGEN_FOUND})
|
||||
endif ()
|
||||
# Build flags
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
if(NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
endif()
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED on)
|
||||
if(MSVC AND NOT BUILD_SHARED_LIBS AND NOT DEFINED CMAKE_MSVC_RUNTIME_LIBRARY)
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
|
||||
Reference in new issue
Block a user