CMakeLists.txt
changeset 9081 39eb61ccbc82
parent 9080 2e4e71ec140f
child 9082 22232029f074
equal deleted inserted replaced
9080:2e4e71ec140f 9081:39eb61ccbc82
   329   endif()
   329   endif()
   330   set(CMAKE_REQUIRED_FLAGS)
   330   set(CMAKE_REQUIRED_FLAGS)
   331 
   331 
   332   check_c_compiler_flag(-Wall HAVE_GCC_WALL)
   332   check_c_compiler_flag(-Wall HAVE_GCC_WALL)
   333   if(HAVE_GCC_WALL)
   333   if(HAVE_GCC_WALL)
       
   334     list(APPEND EXTRA_CFLAGS "-Wall")
   334     if(HAIKU)
   335     if(HAIKU)
   335       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
   336       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
   336     endif()
   337     endif()
   337   endif()
   338   endif()
   338   #check_c_compiler_flag(-Wshadow HAVE_GCC_WSHADOW)
   339   check_c_compiler_flag(-Wshadow HAVE_GCC_WSHADOW)
       
   340   if(HAVE_GCC_WSHADOW)
       
   341     list(APPEND EXTRA_CFLAGS "-Wshadow")
       
   342   endif()
   339 endif()
   343 endif()
   340 
   344 
   341 if(ASSEMBLY)
   345 if(ASSEMBLY)
   342   if(USE_GCC OR USE_CLANG)
   346   if(USE_GCC OR USE_CLANG)
   343     set(SDL_ASSEMBLY_ROUTINES 1)
   347     set(SDL_ASSEMBLY_ROUTINES 1)