Skip to content

Commit

Permalink
cmake doesn't has POLICY CMP0054 in low version
Browse files Browse the repository at this point in the history
  • Loading branch information
yss-al authored and azat committed Nov 4, 2017
1 parent db483e3 commit 3f19c5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,10 @@ if (APPLE)
else()
cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)
endif()
cmake_policy(SET CMP0054 NEW)

if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release
Expand Down

0 comments on commit 3f19c5e

Please sign in to comment.