Meta: Remove redundant cmake_policy calls
Since our cmake_minimum_required call passes version 3.25 all of these are set to the NEW behaviour by default.
This commit is contained in:
parent
36f79124b5
commit
31c475feaa
2 changed files with 0 additions and 20 deletions
|
|
@ -1,13 +1,3 @@
|
|||
# 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()
|
||||
|
||||
# Check arguments to return()
|
||||
if (POLICY CMP0140)
|
||||
cmake_policy(SET CMP0140 NEW)
|
||||
endif()
|
||||
|
||||
ladybird_option(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries instead of static libraries")
|
||||
|
||||
ladybird_option(ENABLE_COMPILETIME_FORMAT_CHECK ON CACHE BOOL "Enable compiletime format string checks")
|
||||
|
|
|
|||
|
|
@ -18,16 +18,6 @@ if (${ENABLE_LAGOM_LADYBIRD} OR $CACHE{ENABLE_LAGOM_LADYBIRD})
|
|||
"Please use the top-level CMakeLists.txt to enable Ladybird builds.\n")
|
||||
endif()
|
||||
|
||||
# This is required for CMake (when invoked for a Lagom-only build) to
|
||||
# ignore any files downloading during the build, e.g. public_suffix_list.dat.
|
||||
# https://cmake.org/cmake/help/latest/policy/CMP0058.html
|
||||
cmake_policy(SET CMP0058 NEW)
|
||||
|
||||
# Make CMAKE_EXE_LINKER_FLAGS have an effect on `try_compile()` jobs.
|
||||
# This is required if we want to have the `LAGOM_USE_LINKER` option
|
||||
# take effect in `check_linker_flag` checks.
|
||||
cmake_policy(SET CMP0056 NEW)
|
||||
|
||||
# Ensure that when single-value arguments are passed to `cmake_parse_arguments()`
|
||||
# with no or empty string arguments, they are still defined.
|
||||
if (POLICY CMP0174)
|
||||
|
|
|
|||
Loading…
Reference in a new issue