mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-24 05:40:04 +02:00
Added CMAKE_VERSION checking.
cmake version less than 3.1 doesn't have the policy CMP0054.
This commit is contained in:
parent
0bfe4c49b7
commit
45b8d29cc0
@ -1,6 +1,9 @@
|
||||
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.6)
|
||||
|
||||
CMAKE_POLICY(SET CMP0054 NEW)
|
||||
IF ((CMAKE_VERSION VERSION_GREATER 3.1) OR
|
||||
(CMAKE_VERSION VERSION_EQUAL 3.1))
|
||||
CMAKE_POLICY(SET CMP0054 NEW)
|
||||
ENDIF ()
|
||||
|
||||
PROJECT (msgpack)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user