Explorar o código

CMake/CI: Allow builds with warnings for OSX (See #94)

bel2125 %!s(int64=9) %!d(string=hai) anos
pai
achega
201cb9bae2
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      CMakeLists.txt

+ 7 - 1
CMakeLists.txt

@@ -89,7 +89,13 @@ option(CIVETWEB_ENABLE_LUA "Enable Lua CGIs" OFF)
 message(STATUS "Lua CGI support - ${CIVETWEB_ENABLE_LUA}")
 message(STATUS "Lua CGI support - ${CIVETWEB_ENABLE_LUA}")
 
 
 # Allow builds to complete with warnings (do not set -Werror)
 # Allow builds to complete with warnings (do not set -Werror)
-option(CIVETWEB_ALLOW_WARNINGS "Do not stop build if there are warnings" OFF)
+if (LINUX)
+# CivetWeb Linux support is stable: Builds must be free from warnings.
+  option(CIVETWEB_ALLOW_WARNINGS "Do not stop build if there are warnings" OFF)
+else()
+# CivetWeb Linux support for other systems is in a setup phase.
+  option(CIVETWEB_ALLOW_WARNINGS "Do not stop build if there are warnings" ON)
+endif()
 message(STATUS "Build if there are warnings - ${CIVETWEB_ALLOW_WARNINGS}")
 message(STATUS "Build if there are warnings - ${CIVETWEB_ALLOW_WARNINGS}")
 
 
 # Link to the shared LUA library
 # Link to the shared LUA library