Skip to content

Commit

Permalink
cmake: set CMP0054 to new in preload.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
mensinda committed Oct 24, 2020
1 parent fc57089 commit 431f0b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mesonbuild/cmake/data/preload.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ endif()

set(MESON_PS_LOADED ON)

cmake_policy(PUSH)
cmake_policy(SET CMP0054 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0054.html

# Dummy macros that have a special meaning in the meson code
macro(meson_ps_execute_delayed_calls)
endmacro()
Expand Down Expand Up @@ -75,3 +78,5 @@ endmacro()

set(MESON_PS_DELAYED_CALLS add_custom_command;add_custom_target;set_property)
meson_ps_reload_vars()

cmake_policy(POP)
7 changes: 6 additions & 1 deletion mesonbuild/mesondata.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@
set(MESON_PS_LOADED ON)
cmake_policy(PUSH)
cmake_policy(SET CMP0054 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0054.html
# Dummy macros that have a special meaning in the meson code
macro(meson_ps_execute_delayed_calls)
endmacro()
Expand Down Expand Up @@ -337,6 +340,8 @@
set(MESON_PS_DELAYED_CALLS add_custom_command;add_custom_target;set_property)
meson_ps_reload_vars()
cmake_policy(POP)
'''


Expand Down Expand Up @@ -379,7 +384,7 @@ def write_to_private(self, env: 'Environment') -> Path:
),
'cmake/data/preload.cmake': DataFile(
Path('cmake/data/preload.cmake'),
'bbc441ededf2c7da2d0e640038ccbf4e818b73a2ba75084e1b4dbf05d8bca865',
'2b4e632aeb74acb2b441880cf85c0b6fcab03e75b182d3077715a97e739a7918',
file_3_data_preload_cmake,
),
}

0 comments on commit 431f0b0

Please sign in to comment.