diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-03 20:44:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-03 20:45:30 +0300 |
commit | 95ad34c5d70f3def18a8286f2cdde85371031988 (patch) | |
tree | 427632bcb94ccbda9eaa972bad88aa9901ef088e /CMakeLists.txt | |
parent | 0936f2f52c584ba623ba6ec722d1581dea97f1f3 (diff) |
Fix CMake error with versions older than 3.9
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bbb528607c8..2bac16c339a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. |