Jelajahi Sumber

Travis: Allow build with warnings (until Ubuntu trusty build environment is fully supported

bel2125 7 tahun lalu
induk
melakukan
90feac5e97
1 mengubah file dengan 1 tambahan dan 7 penghapusan
  1. 1 7
      CMakeLists.txt

+ 1 - 7
CMakeLists.txt

@@ -104,19 +104,13 @@ mark_as_advanced(FORCE CIVETWEB_INSTALL_EXECUTABLE) # Advanced users can disable
 message(STATUS "Executable installation - ${CIVETWEB_INSTALL_EXECUTABLE}") 
 
 # Allow builds to complete with warnings (do not set -Werror)
-if (LINUX)
 # CivetWeb Linux support is stable:
 # Builds for GCC 4.6 and clang 3.4 are free from warnings.
 # However, GCC introduced a couple of new, partially idiotic warnings,
 # that can not be disabled using a #pragma directive.
 # It seems unreasonable to have all GCC versions warning free, but only
 # some selected ones.
-# For the moment, allow warnings.
-  option(CIVETWEB_ALLOW_WARNINGS "Do not stop build if there are warnings" ON)
-else()
-# CivetWeb support for OSX works, but is not free of warnings.
-  option(CIVETWEB_ALLOW_WARNINGS "Do not stop build if there are warnings" ON)
-endif()
+option(CIVETWEB_ALLOW_WARNINGS "Do not stop build if there are warnings" ON)
 message(STATUS "Build if there are warnings - ${CIVETWEB_ALLOW_WARNINGS}")
 
 # Link to the shared LUA library