diff options
author | Brad King <brad.king@kitware.com> | 2018-09-11 19:50:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-11 19:52:43 (GMT) |
commit | e8213404cec972ba43b16ec1b49b62f43c9f48b8 (patch) | |
tree | b412ade53d21bbb39c5b8b7fcead8d45f1c60805 /Modules/FindDoxygen.cmake | |
parent | f478fa633daeb1432805821adddc40730ffd283d (diff) | |
download | CMake-e8213404cec972ba43b16ec1b49b62f43c9f48b8.zip CMake-e8213404cec972ba43b16ec1b49b62f43c9f48b8.tar.gz CMake-e8213404cec972ba43b16ec1b49b62f43c9f48b8.tar.bz2 |
FindDoxygen: Ensure policy settings allow use of IN_LIST
In commit v3.9.0-rc1~55^2 (Improve Doxygen support, 2017-04-10)
use of the `IN_LIST` condition was added, but this is only supported
when policy CMP0057 is set to NEW. Add a policy scope around the
module and enable the policy within it. Otherwise it works only
in projects that happen to enable the policy.
Fixes: #18361
Diffstat (limited to 'Modules/FindDoxygen.cmake')
-rw-r--r-- | Modules/FindDoxygen.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindDoxygen.cmake b/Modules/FindDoxygen.cmake index 945ee0e..2ed9449 100644 --- a/Modules/FindDoxygen.cmake +++ b/Modules/FindDoxygen.cmake @@ -370,6 +370,9 @@ Deprecated Hint Variables #]=======================================================================] +cmake_policy(PUSH) +cmake_policy(SET CMP0057 NEW) # if IN_LIST + # For backwards compatibility support if(Doxygen_FIND_QUIETLY) set(DOXYGEN_FIND_QUIETLY TRUE) @@ -1108,3 +1111,5 @@ doxygen_add_docs() for target ${targetName}") ) endfunction() + +cmake_policy(POP) |