1
0
Fork 0

CMake: Silenced CMP0054 policy warning.

The warning is still emitted for jsoncpp and libevent, but not for Cuberite anymore.
This commit is contained in:
Mattes D 2016-07-17 16:42:38 +02:00
parent 8eaa8613da
commit 2a05d8870d
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
cmake_minimum_required (VERSION 2.8.7)
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
# Without this, the MSVC variable isn't defined for MSVC builds ( http://www.cmake.org/pipermail/cmake/2011-November/047130.html )
enable_language(CXX C)