mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
cmake: Set proper CMake policies by version
This commit is contained in:
parent
67227f2c03
commit
f3a57513ad
1 changed files with 1 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue