2021-09-07 11:08:54 +03:00
#
# Options common for the Serenity (target) and Lagom (host) builds
#
2022-11-05 13:37:33 +03:00
# Make relative paths in depfiles be relative to CMAKE_CURRENT_BINARY_DIR rather than to CMAKE_BINARY_DIR
if ( POLICY CMP0116 )
cmake_policy ( SET CMP0116 NEW )
endif ( )
2021-09-07 11:08:54 +03:00
serenity_option ( ENABLE_COMPILETIME_FORMAT_CHECK ON CACHE BOOL "Enable compiletime format string checks" )
serenity_option ( ENABLE_UNDEFINED_SANITIZER OFF CACHE BOOL "Enable undefined behavior sanitizer testing in gcc/clang" )
2023-08-12 16:39:22 +03:00
serenity_option ( UNDEFINED_BEHAVIOR_IS_FATAL OFF CACHE BOOL "Make undefined behavior sanitizer errors non-recoverable" )
2021-09-07 11:08:54 +03:00
serenity_option ( ENABLE_ALL_THE_DEBUG_MACROS OFF CACHE BOOL "Enable all debug macros to validate they still compile" )
serenity_option ( ENABLE_ALL_DEBUG_FACILITIES OFF CACHE BOOL "Enable all noisy debug symbols and options. Not recommended for normal developer use" )
2021-01-21 23:41:48 +03:00
serenity_option ( ENABLE_COMPILETIME_HEADER_CHECK OFF CACHE BOOL "Enable compiletime check that each library header compiles stand-alone" )
2021-09-07 11:08:54 +03:00
2021-12-23 00:33:38 +03:00
serenity_option ( ENABLE_TIME_ZONE_DATABASE_DOWNLOAD ON CACHE BOOL "Enable download of the IANA Time Zone Database at build time" )
2021-09-07 11:08:54 +03:00
serenity_option ( ENABLE_UNICODE_DATABASE_DOWNLOAD ON CACHE BOOL "Enable download of Unicode UCD and CLDR files at build time" )
2023-05-31 04:38:52 +03:00
serenity_option ( ENABLE_PUBLIC_SUFFIX_DOWNLOAD ON CACHE BOOL "Enable download of the Public Suffix List at build time" )
2021-09-07 11:08:54 +03:00
serenity_option ( INCLUDE_WASM_SPEC_TESTS OFF CACHE BOOL "Download and include the WebAssembly spec testsuite" )
2022-07-25 14:28:16 +03:00
serenity_option ( INCLUDE_FLAC_SPEC_TESTS OFF CACHE BOOL "Download and include the FLAC spec testsuite" )
2023-03-14 16:12:58 +03:00
serenity_option ( ENABLE_CACERT_DOWNLOAD ON CACHE BOOL "Enable download of cacert.pem at build time" )
2022-01-07 17:31:48 +03:00
serenity_option ( HACKSTUDIO_BUILD OFF CACHE BOOL "Automatically enabled when building from HackStudio" )
2022-05-20 08:46:36 +03:00
serenity_option ( ENABLE_JAKT OFF CACHE BOOL "Enable building jakt files" )
serenity_option ( JAKT_SOURCE_DIR "" CACHE STRING "Pre-existing jakt language source directory" )
2023-08-08 04:13:06 +03:00
serenity_option ( SERENITY_CACHE_DIR "${PROJECT_BINARY_DIR}/../caches" CACHE PATH "Location of shared cache of downloaded files" )
2023-08-11 00:45:59 +03:00
serenity_option ( ENABLE_NETWORK_DOWNLOADS ON CACHE BOOL "Allow downloads of required files. If OFF, required files must already be present in SERENITY_CACHE_DIR" )