mirror of
https://github.com/overte-org/overte.git
synced 2025-06-15 14:19:14 +02:00
CMP0074 Warning: Proper check for cmake versions 4.x and higher
This commit is contained in:
parent
c19194fed5
commit
2bc99d3894
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ else()
|
||||||
cmake_minimum_required(VERSION 3.2)
|
cmake_minimum_required(VERSION 3.2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (${CMAKE_MAJOR_VERSION} GREATER 2 AND ${CMAKE_MINOR_VERSION} GREATER 11)
|
# squelch the Policy CMP0074 warning without requiring an update to cmake 3.12.
|
||||||
# squelch the Policy CMP0074 warning without requiring an update to cmake 3.12.
|
if ((${CMAKE_MAJOR_VERSION} EQUAL 3 AND ${CMAKE_MINOR_VERSION} GREATER 11) OR ${CMAKE_MAJOR_VERSION} GREATER 3)
|
||||||
cmake_policy(SET CMP0074 NEW)
|
cmake_policy(SET CMP0074 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue