You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the file cmake/SetCXXStandard.cmake forces compilation to either c++11 or c++14.
However project compiles with c++17 and c++20.
Would it be possible to add support of ^^?
find_package(Boost 1.59.0 REQUIRED)
+if(NOT DEFINED ${CMAKE_CXX_STANDARD})
if(Boost_VERSION VERSION_LESS "1.72.0")
set(CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target")
else()
set(CMAKE_CXX_STANDARD 14 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target")
endif()
+endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
Activity
VladimirTeza commentedon Jan 9, 2023
One of the possible solutions, do not set standard if it is already set: