mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 22:33:08 +02:00
Merge pull request #2053 from janikrabe/cmake-cmp0037-fix
Do not set CMP0037 on CMake 3.11.0 and above
This commit is contained in:
commit
252a3cea8a
1 changed files with 5 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
cmake_minimum_required (VERSION 3.0)
|
cmake_minimum_required (VERSION 3.0)
|
||||||
|
|
||||||
# See this CMake issue before complaining about the following.
|
# This is a work-around for the following CMake issue:
|
||||||
# https://cmake.org/Bug/view.php?id=16062
|
# https://gitlab.kitware.com/cmake/cmake/issues/16062
|
||||||
if(POLICY CMP0037)
|
# The issue has been fixed in CMake 3.11.0; the policy is set
|
||||||
|
# to OLD for compatibility with older versions of CMake only.
|
||||||
|
if(POLICY CMP0037 AND ${CMAKE_VERSION} VERSION_LESS "3.11.0")
|
||||||
cmake_policy(SET CMP0037 OLD)
|
cmake_policy(SET CMP0037 OLD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue