CMakeLists.txt
changeset 7999 2c9aedfba740
parent 7981 6d538bc1b395
child 8031 edf58197a910
equal deleted inserted replaced
7998:097e3fac1979 7999:2c9aedfba740
   264   message_error("unknown assertion level")
   264   message_error("unknown assertion level")
   265 endif(ASSERTIONS STREQUAL "auto")
   265 endif(ASSERTIONS STREQUAL "auto")
   266 set(HAVE_ASSERTIONS ${ASSERTIONS})
   266 set(HAVE_ASSERTIONS ${ASSERTIONS})
   267 
   267 
   268 # Compiler option evaluation
   268 # Compiler option evaluation
   269 if(USE_GCC)
   269 if(USE_GCC OR USE_CLANG)
   270   if(DEPENDENCY_TRACKING)
   270   if(DEPENDENCY_TRACKING)
   271     check_c_source_compiles("
   271     check_c_source_compiles("
   272         #if !defined(__GNUC__) || __GNUC__ < 3
   272         #if !defined(__GNUC__) || __GNUC__ < 3
   273         #error Dependency tracking requires GCC 3.0 or newer
   273         #error Dependency tracking requires GCC 3.0 or newer
   274         #endif
   274         #endif
   312   if(HAVE_GCC_WALL)
   312   if(HAVE_GCC_WALL)
   313     if(HAIKU)
   313     if(HAIKU)
   314       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
   314       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
   315     endif(HAIKU)
   315     endif(HAIKU)
   316   endif(HAVE_GCC_WALL)
   316   endif(HAVE_GCC_WALL)
   317 endif(USE_GCC)
   317 endif(USE_GCC OR USE_CLANG)
   318 
   318 
   319 if(ASSEMBLY)
   319 if(ASSEMBLY)
   320   if(USE_GCC OR USE_CLANG)
   320   if(USE_GCC OR USE_CLANG)
   321     set(SDL_ASSEMBLY_ROUTINES 1)
   321     set(SDL_ASSEMBLY_ROUTINES 1)
   322     # TODO: Those all seem to be quite GCC specific - needs to be
   322     # TODO: Those all seem to be quite GCC specific - needs to be