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 9278 e881c9e96650
parent 9277 743c0a496aa8
child 9279 e5e5571d3bed
CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars.
CMakeLists.txt
--- a/CMakeLists.txt	Sat Dec 13 01:17:10 2014 -0500
+++ b/CMakeLists.txt	Sat Dec 13 02:40:52 2014 -0500
@@ -200,6 +200,8 @@
 # General includes
 include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
 
+# All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
+#  you only need to have a platform override them if they are disabling.
 if(EMSCRIPTEN)
   # Set up default values for the currently supported set of subsystems:
   # Emscripten/Javascript does not have assembly support, a dynamic library 
@@ -211,13 +213,6 @@
   set(SDL_LOADSO_ENABLED_BY_DEFAULT OFF)
   set(SDL_CPUINFO_ENABLED_BY_DEFAULT OFF)
   set(DLOPEN_ENABLED_BY_DEFAULT OFF)
-else()
-  set(SDL_SHARED_ENABLED_BY_DEFAULT ON)
-  set(SDL_ATOMIC_ENABLED_BY_DEFAULT ON)
-  set(SDL_THREADS_ENABLED_BY_DEFAULT ON)
-  set(SDL_LOADSO_ENABLED_BY_DEFAULT ON)
-  set(SDL_CPUINFO_ENABLED_BY_DEFAULT ON)
-  set(DLOPEN_ENABLED_BY_DEFAULT ON)
 endif()
 
 set(SDL_SUBSYSTEMS