From d8988ea842ffd91301c75ddd0053d630965699db Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 20 Mar 2015 10:02:45 -0400 Subject: [PATCH] Fixed some defaults in CMake project file. Fixes not finding dlopen(), etc. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6baff8a0a..23c270fe3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,6 +213,14 @@ if(EMSCRIPTEN) set(SDL_LOADSO_ENABLED_BY_DEFAULT OFF) set(SDL_CPUINFO_ENABLED_BY_DEFAULT OFF) set(DLOPEN_ENABLED_BY_DEFAULT OFF) +else() + set(OPT_DEF_ASM TRUE) + 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