diff options
author | Adam <Adam@anope.org> | 2014-12-28 20:00:41 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-12-28 20:01:11 -0500 |
commit | c46ec39e5088119cd21f5f7e16e64e61a876ca20 (patch) | |
tree | 1451d02184a0812b3ec9e4f51a09ead6dd2bd896 /CMakeLists.txt | |
parent | 9b2202dfee4a086ca567fda457b3f0e83064add8 (diff) |
Only disable CMP0026 if it exists
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 bef3215a6..ff65fd30b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 2.4 FATAL_ERROR) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) - cmake_policy(SET CMP0026 OLD) + if(POLICY CMP0026) + cmake_policy(SET CMP0026 OLD) + endif(POLICY CMP0026) endif(COMMAND cmake_policy) # If the Source dir and the Binary dir are the same, we are building in-source, which we will disallow due to Autotools being there (but only on non-Windows) |