CMakeLists.txt
changeset 11312 ee47dce3b10c
parent 11296 44853f387017
child 11320 6b36980ae340
     1.1 --- a/CMakeLists.txt	Thu Aug 17 03:22:44 2017 -0400
     1.2 +++ b/CMakeLists.txt	Thu Aug 17 15:44:47 2017 -0400
     1.3 @@ -948,6 +948,11 @@
     1.4      CheckKMSDRM()
     1.5    endif()
     1.6  
     1.7 +  if(UNIX)
     1.8 +    file(GLOB CORE_UNIX_SOURCES ${SDL2_SOURCE_DIR}/src/core/unix/*.c)
     1.9 +    set(SOURCE_FILES ${SOURCE_FILES} ${CORE_UNIX_SOURCES})
    1.10 +  endif()
    1.11 +
    1.12    if(LINUX)
    1.13      check_c_source_compiles("
    1.14          #include <linux/input.h>
    1.15 @@ -967,8 +972,8 @@
    1.16              ioctl(0, KDGKBENT, &kbe);
    1.17          }" HAVE_INPUT_KD)
    1.18  
    1.19 -    file(GLOB CORE_SOURCES ${SDL2_SOURCE_DIR}/src/core/linux/*.c)
    1.20 -    set(SOURCE_FILES ${SOURCE_FILES} ${CORE_SOURCES})
    1.21 +    file(GLOB CORE_LINUX_SOURCES ${SDL2_SOURCE_DIR}/src/core/linux/*.c)
    1.22 +    set(SOURCE_FILES ${SOURCE_FILES} ${CORE_LINUX_SOURCES})
    1.23  
    1.24      if(HAVE_INPUT_EVENTS)
    1.25        set(SDL_INPUT_LINUXEV 1)