cmake: Set proper CMake policies by version

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-09-28 02:04:35 +02:00
parent 67227f2c03
commit f3a57513ad

View file

@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
# CMake Setup
cmake_minimum_required(VERSION 3.8.0)
cmake_minimum_required(VERSION 3.8...3.12)
# Automatic Versioning
set(VERSION_MAJOR 0)
@ -60,12 +60,6 @@ else()
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_TWEAK}${VERSION_SUFFIX}")
endif()
# Policies
cmake_policy(PUSH)
if (${CMAKE_VERSION} VERSION_GREATER "3.12.0")
cmake_policy(SET CMP0074 NEW)
endif()
# Define Project
project(
StreamFX
@ -1264,5 +1258,3 @@ else()
)
endif()
endif()
cmake_policy(POP)