mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
Meta: Remove some obsolete cmake version checks
We require CMake 3.25 nowadays. No behavior change.
This commit is contained in:
parent
22ea2f638a
commit
17f37cbd8c
4 changed files with 11 additions and 72 deletions
|
@ -7,26 +7,10 @@ project(
|
|||
)
|
||||
|
||||
# NOTE: Before CMake 3.19, if a custom command is attached to multiple step targets for Makefile and Visual Studio generators,
|
||||
# it might be run multiple times during the build. Enable new behavior of policy CMP0114 to avoid this, or apply the
|
||||
# workaround from https://gitlab.kitware.com/cmake/cmake/-/issues/18663#note_489967
|
||||
if(NOT CMAKE_VERSION VERSION_LESS "3.19")
|
||||
cmake_policy(SET CMP0114 NEW)
|
||||
macro(ensure_dependencies)
|
||||
endmacro()
|
||||
else()
|
||||
macro(ensure_dependencies proj)
|
||||
foreach(step IN ITEMS configure build install)
|
||||
if(NOT TARGET "${proj}-${step}")
|
||||
ExternalProject_Add_StepTargets("${proj}" "${step}")
|
||||
endif()
|
||||
if(step STREQUAL "install")
|
||||
ExternalProject_Add_StepDependencies("${proj}" install "${proj}-build")
|
||||
elseif(step STREQUAL "build")
|
||||
ExternalProject_Add_StepDependencies("${proj}" build "${proj}-configure")
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
endif()
|
||||
# it might be run multiple times during the build. Enable new behavior of policy CMP0114 to avoid this.
|
||||
cmake_policy(SET CMP0114 NEW)
|
||||
macro(ensure_dependencies)
|
||||
endmacro()
|
||||
|
||||
get_filename_component(
|
||||
SERENITY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/../../.."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue