diff options
author | Chris Robinson <[email protected]> | 2016-01-21 06:18:54 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-01-21 06:18:54 -0800 |
commit | 26f5d385d557e677ef3c0600343a9997d3bebe3c (patch) | |
tree | 52ec631c8f140bffbb4d14ca0d6c3a38a1eec7cf | |
parent | 0a9e9858f983b7b4c6b92c3d9ecf69a9d3ecb3f6 (diff) |
Only set cmake policy CMP0042 if it's valid
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dac8d998..847adc7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,11 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(OpenAL) IF(COMMAND CMAKE_POLICY) - CMAKE_POLICY(SET CMP0003 NEW) - CMAKE_POLICY(SET CMP0005 NEW) - CMAKE_POLICY(SET CMP0042 NEW) + CMAKE_POLICY(SET CMP0003 NEW) + CMAKE_POLICY(SET CMP0005 NEW) + IF(POLICY CMP0042) + CMAKE_POLICY(SET CMP0042 NEW) + ENDIF(POLICY CMP0042) ENDIF(COMMAND CMAKE_POLICY) SET(CMAKE_MODULE_PATH "${OpenAL_SOURCE_DIR}/cmake") |