Skip to content

Commit

Permalink
enh: guard cmake policy to support old cmake ver
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Jan 4, 2017
1 parent 9c8f3eb commit 54b343c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ cmake_minimum_required(VERSION 3.0)
# avoid default mac osx rpath settings for cmake 3.0
cmake_policy(SET CMP0042 OLD)
# cmake var deref policy
cmake_policy(SET CMP0054 OLD)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 OLD)
endif()


################################
# Conduit
Expand Down

0 comments on commit 54b343c

Please sign in to comment.