Fix CMake error with versions older than 3.9

This commit is contained in:
Brecht Van Lommel 2020-02-03 18:44:52 +01:00
parent 0936f2f52c
commit 95ad34c5d7

@ -98,7 +98,9 @@ cmake_policy(SET CMP0010 NEW)
cmake_policy(SET CMP0014 NEW)
# Silence draco warning on macOS, new policy works fine.
cmake_policy(SET CMP0068 NEW)
if(POLICY CMP0068)
cmake_policy(SET CMP0068 NEW)
endif()
#-----------------------------------------------------------------------------
# Load some macros.