Cmake build: Expand for possible c++20 compilation

This commit is contained in:
Kornel Benko 2020-12-28 13:13:27 +01:00
parent dea8231b7b
commit 86a10281da

View File

@ -37,7 +37,7 @@ INCLUDE(FindPackageHandleStandardArgs)
# get cmake-known std numbers
# Detection of c++20 works well, but our code is not ready for it yet.
# We currently get errors with internal boost and also from our code.
set(_max_std_num 17)
set(_max_std_num 20)
lyxgetknowncmakestd(${_max_std_num} tmpnums)
if (CMAKE_CXX_COMPILER_ID MATCHES "^([cC]lang|AppleClang)$")