[LyX/master] Cmake build: Expand for possible c++20 compilation

Kornel Benko kornel at lyx.org
Mon Dec 28 12:14:06 UTC 2020


commit 86a10281da8dfd3e0892c368476dc867d5bfd852
Author: Kornel Benko <kornel at lyx.org>
Date:   Mon Dec 28 13:13:27 2020 +0100

    Cmake build: Expand for possible c++20 compilation
---
 development/cmake/modules/FindCXX11Compiler.cmake |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/development/cmake/modules/FindCXX11Compiler.cmake b/development/cmake/modules/FindCXX11Compiler.cmake
index 01d6e6c..750a8ff 100644
--- a/development/cmake/modules/FindCXX11Compiler.cmake
+++ b/development/cmake/modules/FindCXX11Compiler.cmake
@@ -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)$")


More information about the lyx-cvs mailing list