commit e873ac3c909535fee90be6e31a255b7468fa5aa7
Author: Stephan Witt <sw...@lyx.org>
Date:   Sat Jul 30 15:04:37 2022 +0200

    Enhanced build script to use c++17 with EnableCXXMode for Qt6
---
 development/LyX-Mac-binary-release.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/development/LyX-Mac-binary-release.sh 
b/development/LyX-Mac-binary-release.sh
index cc7320d..8bad69d 100644
--- a/development/LyX-Mac-binary-release.sh
+++ b/development/LyX-Mac-binary-release.sh
@@ -285,7 +285,6 @@ while [ $# -gt 0 ]; do
                shift
                ;;
        --enable-cxx11|--enable-cxx-mode=*)
-               LyXConfigureOptions="${LyXConfigureOptions} ${1}"
                EnableCXXMode="${1}"
                shift
                ;;
@@ -423,11 +422,13 @@ case "${EnableCXXMode}" in
        export CC=cc
        export CXX="c++ -stdlib=libc++"
        export CXXFLAGS=-std=c++11
+       LyXConfigureOptions="${LyXConfigureOptions} --enable-cxx-mode=11"
        ;;
 --enable-cxx-mode=17)
        export CC=cc
        export CXX="c++ -stdlib=libc++"
        export CXXFLAGS=-std=c++17
+       LyXConfigureOptions="${LyXConfigureOptions} ${EnableCXXMode}"
        ;;
 esac
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to