mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 10:49:12 +00:00
fix CMakeLists.txt vs. configure inconsistencies
- atomic subsystem is disabled by default (changed in configure) - SDL_WAYLAND_LIBDECOR is disabled by default if SDL_WAYLAND is not set (changed in CMakeLists.txt)
This commit is contained in:
11
configure.ac
11
configure.ac
@@ -415,9 +415,18 @@ SOURCES="$SOURCES $srcdir/src/locale/*.c"
|
||||
|
||||
dnl Enable/disable various subsystems of the SDL library
|
||||
|
||||
case "$host" in
|
||||
*-*-emscripten*)
|
||||
default_atomic=no
|
||||
;;
|
||||
*)
|
||||
default_atomic=yes
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_ENABLE(atomic,
|
||||
[AS_HELP_STRING([--enable-atomic], [Enable the atomic operations subsystem [default=yes]])],
|
||||
, enable_atomic=yes)
|
||||
, enable_atomic=$default_atomic)
|
||||
if test x$enable_atomic != xyes; then
|
||||
AC_DEFINE(SDL_ATOMIC_DISABLED, 1, [ ])
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user