CMakeLists.txt
changeset 11487 bf55fefff23d
parent 11480 e7a79b236dc0
child 11537 ce94d20bd620
equal deleted inserted replaced
11486:0f4bf9e4a498 11487:bf55fefff23d
   231 endif()
   231 endif()
   232 
   232 
   233 add_definitions(-DUSING_GENERATED_CONFIG_H)
   233 add_definitions(-DUSING_GENERATED_CONFIG_H)
   234 # General includes
   234 # General includes
   235 include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
   235 include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
   236 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
   236 if(USE_GCC OR USE_CLANG)
       
   237   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
       
   238 else()
       
   239   include_directories(${SDL2_SOURCE_DIR}/src/video/khronos)
       
   240 endif()
   237 
   241 
   238 # All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
   242 # All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
   239 #  you only need to have a platform override them if they are disabling.
   243 #  you only need to have a platform override them if they are disabling.
   240 set(OPT_DEF_ASM TRUE)
   244 set(OPT_DEF_ASM TRUE)
   241 if(EMSCRIPTEN)
   245 if(EMSCRIPTEN)