Lines Matching +full:clang +full:- +full:5
45 string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" CIVETWEB_VERSION_MATCH "${CIVETWEB_VERSION}")
57 message(STATUS "Enabling tests in the build - ${CIVETWEB_BUILD_TESTING}")
66 message(STATUS "Thread Stack Size - ${CIVETWEB_THREAD_STACK_SIZE}")
69 message(STATUS "Enabling server executable - ${CIVETWEB_ENABLE_SERVER_EXECUTABLE}")
73 message(STATUS "Serve no static files - ${CIVETWEB_SERVE_NO_FILES}")
77 message(STATUS "Disable CGI support - ${CIVETWEB_DISABLE_CGI}")
81 message(STATUS "Disable caching support - ${CIVETWEB_DISABLE_CACHING}")
85 message(STATUS "C++ wrappers - ${CIVETWEB_ENABLE_CXX}")
89 message(STATUS "IP Version 6 - ${CIVETWEB_ENABLE_IPV6}")
93 message(STATUS "Websockets support - ${CIVETWEB_ENABLE_WEBSOCKETS}")
97 message(STATUS "Server statistics support - ${CIVETWEB_ENABLE_SERVER_STATS}")
101 message(STATUS "Memory Debugging - ${CIVETWEB_ENABLE_MEMORY_DEBUGGING}")
103 # ASAN in debug mode (-fsanitize=address, etc)
105 message(STATUS "ASAN in debug mode - ${CIVETWEB_ENABLE_ASAN}")
109 message(STATUS "Force x32 / x64 architecture - ${CIVETWEB_ARCH}")
113 message(STATUS "Lua CGI support - ${CIVETWEB_ENABLE_LUA}")
118 message(STATUS "Executable installation - ${CIVETWEB_INSTALL_EXECUTABLE}")
120 # Allow builds to complete with warnings (do not set -Werror)
122 # Builds for GCC 4.6 and clang 3.4 are free from warnings.
128 message(STATUS "Build if there are warnings - ${CIVETWEB_ALLOW_WARNINGS}")
141 message(STATUS "Linking shared Lua library - ${CIVETWEB_ENABLE_LUA_SHARED}")
151 message(STATUS "Lua Version - ${CIVETWEB_LUA_VERSION}")
165 message(STATUS "Lua Filesystem Version - ${CIVETWEB_LUA_FILESYSTEM_VERSION}")
178 message(STATUS "Lua SQLite Version - ${CIVETWEB_LUA_SQLITE_VERSION}")
191 message(STATUS "Lua XML Version - ${CIVETWEB_LUA_XML_VERSION}")
204 message(STATUS "SQLite Version - ${CIVETWEB_SQLITE_VERSION}")
216 message(STATUS "Duktape CGI support - ${CIVETWEB_ENABLE_DUKTAPE}")
220 message(STATUS "SSL support - ${CIVETWEB_ENABLE_SSL}")
224 message(STATUS "Compile for OpenSSL 1.1 API - ${CIVETWEB_SSL_OPENSSL_API_1_1}")
231 message(STATUS "Dynamically load SSL libraries - ${CIVETWEB_ENABLE_SSL_DYNAMIC_LOADING}")
236 if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
238 ${CMAKE_CXX_COMPILER_VERSION} GREATER 5)
255 message(STATUS "SSL Library Name - ${CIVETWEB_SSL_SSL_LIB}")
261 message(STATUS "SSL Cryptography Library Name - ${CIVETWEB_SSL_CRYPTO_LIB}")
279 find_program(GCC_AR gcc-ar)
283 find_program(GCC_RANLIB gcc-ranlib)
292 add_c_compiler_flag(-std=c11)
294 add_c_compiler_flag(-std=c99)
296 add_c_compiler_flag(-std=c89)
300 add_c_compiler_flag(-std=${CIVETWEB_C_STANDARD})
304 add_c_compiler_flag(-Wno-format)
307 add_c_compiler_flag(-Werror)
311 add_c_compiler_flag(-flto RELEASE)
314 add_c_compiler_flag(-fsanitize=undefined DEBUG)
315 add_c_compiler_flag(-fsanitize=address DEBUG)
317 add_c_compiler_flag(-static-asan DEBUG)
321 add_c_compiler_flag(-mwindows)
344 add_c_compiler_flag(--coverage COVERAGE)
350 add_cxx_compiler_flag(-std=c++14)
352 add_cxx_compiler_flag(-std=c++11)
354 add_cxx_compiler_flag(-std=c++98)
358 add_cxx_compiler_flag(-std=${CIVETWEB_CXX_STANDARD})
360 add_cxx_compiler_flag(-Wall)
361 add_cxx_compiler_flag(-Wextra)
362 add_cxx_compiler_flag(-Wshadow)
363 add_cxx_compiler_flag(-Wmissing-prototypes)
364 add_cxx_compiler_flag(-Weverything)
366 add_cxx_compiler_flag(-Wno-padded)
368 add_cxx_compiler_flag(-Wno-unused-macros)
369 add_cxx_compiler_flag(-Wno-format-nonliteral)
371 add_cxx_compiler_flag(-Wno-format)
374 add_cxx_compiler_flag(-Werror)
377 add_cxx_compiler_flag(-pedantic-errors)
378 add_cxx_compiler_flag(-fvisibility=hidden)
379 add_cxx_compiler_flag(-fstack-protector-strong RELEASE)
382 add_cxx_compiler_flag(-flto RELEASE)
385 add_cxx_compiler_flag(-fsanitize=undefined DEBUG)
386 add_cxx_compiler_flag(-fsanitize=address DEBUG)
388 add_cxx_compiler_flag(-static-asan DEBUG)
391 add_cxx_compiler_flag(-fstack-protector-all DEBUG)
393 add_cxx_compiler_flag(-mwindows)
398 add_cxx_compiler_flag(--coverage COVERAGE)
403 add_c_compiler_flag(-Wall)
404 add_c_compiler_flag(-Wextra)
405 add_c_compiler_flag(-Wshadow)
406 add_c_compiler_flag(-Wconversion)
407 add_c_compiler_flag(-Wmissing-prototypes)
408 add_c_compiler_flag(-Weverything)
409 add_c_compiler_flag(-Wparentheses)
413 add_c_compiler_flag(-Wno-padded) # padding in structures by compiler
414 add_c_compiler_flag(-Wno-unused-macros) # so what?
415 Check_C_Compiler_Flag( HAVE_NO_RESERVED_ID_MACROS -Wno-reserved-id-macros)
417 add_c_compiler_flag(-Wno-reserved-id-macros) # for system headers
419 add_c_compiler_flag(-Wno-format-nonliteral) # printf(myFormatStringVar, ...)
420 add_c_compiler_flag(-Wno-cast-qual) # const cast
423 add_c_compiler_flag(-pedantic-errors)
424 add_c_compiler_flag(-fvisibility=hidden)
425 add_c_compiler_flag(-fstack-protector-strong RELEASE)
426 add_c_compiler_flag(-fstack-protector-all DEBUG)
450 add_definitions(-DMG_EXTERNAL_FUNCTION_mg_cry_internal_impl)
451 add_definitions(-DMG_EXTERNAL_FUNCTION_log_access)
453 add_definitions(-DNO_ALTERNATIVE_QUEUE)
454 add_definitions(-DZEPHYR_VERSION=${KERNEL_VERSION_STRING})
476 add_definitions(-DDEBUG)
477 add_definitions(-O0)
478 add_definitions(-g)
481 add_definitions(-DUSE_IPV6)
484 add_definitions(-DUSE_WEBSOCKET)
487 add_definitions(-DUSE_SERVER_STATS)
490 add_definitions(-DNO_FILES)
493 add_definitions(-DNO_FILESYSTEMS)
496 add_definitions(-DNO_CGI)
499 add_definitions(-DNO_CACHING)
502 add_definitions(-DUSE_LUA)
505 add_definitions(-DUSE_DUKTAPE)
508 add_definitions(-DMEMORY_DEBUGGING)
511 add_definitions(-DNO_SSL)
513 add_definitions(-DNO_SSL_DL)
516 add_definitions(-DSSL_LIB="${CIVETWEB_SSL_SSL_LIB}")
519 add_definitions(-DCRYPTO_LIB="${CIVETWEB_SSL_CRYPTO_LIB}")
523 add_definitions(-DOPENSSL_API_1_1)
525 add_definitions(-DUSE_STACK_SIZE=${CIVETWEB_THREAD_STACK_SIZE})
529 add_c_compiler_flag(-m32)
532 add_c_compiler_flag(-m64)
534 # TODO: add support for -march
550 message(STATUS "Check Unit Testing Framework Version - ${CIVETWEB_CHECK_VERSION}")
570 EXPORT ${PROJECT_NAME}-targets
572 FILE ${PROJECT_NAME}-targets.cmake
574 COMPONENT civetweb-cmake-config
578 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/${PROJECT_NAME}-config.cmake.in"
579 ${PROJECT_NAME}-config.cmake
585 write_basic_package_version_file(${PROJECT_NAME}-config-version.cmake
592 "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
593 "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake"
595 COMPONENT civetweb-cmake-config