cmake: Set proper CMake policies by version
This commit is contained in:
parent
67227f2c03
commit
f3a57513ad
|
@ -16,7 +16,7 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
# CMake Setup
|
# CMake Setup
|
||||||
cmake_minimum_required(VERSION 3.8.0)
|
cmake_minimum_required(VERSION 3.8...3.12)
|
||||||
|
|
||||||
# Automatic Versioning
|
# Automatic Versioning
|
||||||
set(VERSION_MAJOR 0)
|
set(VERSION_MAJOR 0)
|
||||||
|
@ -60,12 +60,6 @@ else()
|
||||||
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_TWEAK}${VERSION_SUFFIX}")
|
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_TWEAK}${VERSION_SUFFIX}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Policies
|
|
||||||
cmake_policy(PUSH)
|
|
||||||
if (${CMAKE_VERSION} VERSION_GREATER "3.12.0")
|
|
||||||
cmake_policy(SET CMP0074 NEW)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Define Project
|
# Define Project
|
||||||
project(
|
project(
|
||||||
StreamFX
|
StreamFX
|
||||||
|
@ -1264,5 +1258,3 @@ else()
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
cmake_policy(POP)
|
|
||||||
|
|
Loading…
Reference in New Issue