CMakeLists.txt
changeset 11487 bf55fefff23d
parent 11480 e7a79b236dc0
child 11537 ce94d20bd620
     1.1 --- a/CMakeLists.txt	Sun Sep 10 09:19:10 2017 -0700
     1.2 +++ b/CMakeLists.txt	Sun Sep 10 10:25:36 2017 -0700
     1.3 @@ -233,7 +233,11 @@
     1.4  add_definitions(-DUSING_GENERATED_CONFIG_H)
     1.5  # General includes
     1.6  include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
     1.7 -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
     1.8 +if(USE_GCC OR USE_CLANG)
     1.9 +  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
    1.10 +else()
    1.11 +  include_directories(${SDL2_SOURCE_DIR}/src/video/khronos)
    1.12 +endif()
    1.13  
    1.14  # All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
    1.15  #  you only need to have a platform override them if they are disabling.