mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-06 22:43:40 +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)
|
||||
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)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue