Commit ce45b3e4 authored by Brad King's avatar Brad King
Browse files

Merge branch 'ExternalProject-CMP0054' into release-3.10

Merge-request: !1369
parents 165eff93 491d2108
...@@ -854,6 +854,9 @@ The custom step could then be triggered from the main build like so:: ...@@ -854,6 +854,9 @@ The custom step could then be triggered from the main build like so::
#]=======================================================================] #]=======================================================================]
cmake_policy(PUSH)
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
# Pre-compute a regex to match documented keywords for each command. # Pre-compute a regex to match documented keywords for each command.
math(EXPR _ep_documentation_line_count "${CMAKE_CURRENT_LIST_LINE} - 4") math(EXPR _ep_documentation_line_count "${CMAKE_CURRENT_LIST_LINE} - 4")
file(STRINGS "${CMAKE_CURRENT_LIST_FILE}" lines file(STRINGS "${CMAKE_CURRENT_LIST_FILE}" lines
...@@ -3035,3 +3038,5 @@ function(ExternalProject_Add name) ...@@ -3035,3 +3038,5 @@ function(ExternalProject_Add name)
# #
_ep_add_test_command(${name}) _ep_add_test_command(${name})
endfunction() endfunction()
cmake_policy(POP)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment