fix(CMake): Deprecation warning #3814
This commit is contained in:
parent
c5a35efd7b
commit
b1f108900d
@ -10,17 +10,22 @@
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
|
||||
# Set projectname (must be done AFTER setting configurationtypes)
|
||||
project(AzerothCore)
|
||||
|
||||
# Require a min version Cmake
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
cmake_minimum_required(VERSION 3.8...3.19)
|
||||
|
||||
# Fallback for using newer policies on CMake <3.12.
|
||||
if(${CMAKE_VERSION} VERSION_LESS 3.12)
|
||||
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
||||
endif()
|
||||
|
||||
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
||||
|
||||
# CMake policies (can not be handled elsewhere)
|
||||
cmake_policy(SET CMP0005 NEW)
|
||||
|
||||
# Set projectname (must be done AFTER setting configurationtypes)
|
||||
project(AzerothCore VERSION 3.0.0 LANGUAGES CXX C)
|
||||
|
||||
# add this options before PROJECT keyword
|
||||
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
|
||||
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user