Skip to content

Commit

Permalink
CMake: Silenced CMP0054 policy warning.
Browse files Browse the repository at this point in the history
The warning is still emitted for jsoncpp and libevent, but not for Cuberite anymore.
  • Loading branch information
madmaxoft committed Jul 18, 2016
1 parent 8eaa861 commit 2a05d88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 2a05d88

Please sign in to comment.