]> git.lyx.org Git - lyx.git/commitdiff
Care for consistent compiler flag values of macosx-version-min with ObjC and C++
authorStephan Witt <switt@lyx.org>
Mon, 6 Dec 2021 06:46:35 +0000 (07:46 +0100)
committerStephan Witt <switt@lyx.org>
Mon, 6 Dec 2021 06:51:42 +0000 (07:51 +0100)
config/lyxinclude.m4

index 40f86abf703be92a792e1bc9a347874a47f1b55f..e6cab08e3baa054548b361c16b3940c3e4199cb7 100644 (file)
@@ -694,7 +694,7 @@ AC_DEFUN([LYX_CHECK_MACOS_DEPLOYMENT_TARGET],[
       ;;
     esac
   fi
-  AM_CXXFLAGS="-mmacosx-version-min=$macos_deployment_target $AM_CXXFLAGS"
+  AM_CPPFLAGS="-mmacosx-version-min=$macos_deployment_target $AM_CPPFLAGS"
   AM_LDFLAGS="-mmacosx-version-min=$macos_deployment_target $AM_LDFLAGS"
   AC_SUBST(macos_deployment_target,"${macos_deployment_target}")
   AC_MSG_CHECKING([the macos deployment target for LyX])