CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 13 Dec 2014 02:40:52 -0500
changeset 9279e1d1b6479a14
parent 9278 8900afb78a19
child 9280 f33128b58c5d
CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Thu Dec 18 00:19:52 2014 -0500
     1.2 +++ b/CMakeLists.txt	Sat Dec 13 02:40:52 2014 -0500
     1.3 @@ -200,6 +200,8 @@
     1.4  # General includes
     1.5  include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
     1.6  
     1.7 +# All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
     1.8 +#  you only need to have a platform override them if they are disabling.
     1.9  if(EMSCRIPTEN)
    1.10    # Set up default values for the currently supported set of subsystems:
    1.11    # Emscripten/Javascript does not have assembly support, a dynamic library 
    1.12 @@ -211,13 +213,6 @@
    1.13    set(SDL_LOADSO_ENABLED_BY_DEFAULT OFF)
    1.14    set(SDL_CPUINFO_ENABLED_BY_DEFAULT OFF)
    1.15    set(DLOPEN_ENABLED_BY_DEFAULT OFF)
    1.16 -else()
    1.17 -  set(SDL_SHARED_ENABLED_BY_DEFAULT ON)
    1.18 -  set(SDL_ATOMIC_ENABLED_BY_DEFAULT ON)
    1.19 -  set(SDL_THREADS_ENABLED_BY_DEFAULT ON)
    1.20 -  set(SDL_LOADSO_ENABLED_BY_DEFAULT ON)
    1.21 -  set(SDL_CPUINFO_ENABLED_BY_DEFAULT ON)
    1.22 -  set(DLOPEN_ENABLED_BY_DEFAULT ON)
    1.23  endif()
    1.24  
    1.25  set(SDL_SUBSYSTEMS