Skip to content

Commit

Permalink
Only set policy if it's available
Browse files Browse the repository at this point in the history
  • Loading branch information
jhanssen committed May 21, 2015
1 parent c052186 commit 93d3a68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rct.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 2.8)
project(rct)

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

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/")

Expand Down

0 comments on commit 93d3a68

Please sign in to comment.