diff options
author | Ronan Collobert <ronan@collobert.com> | 2014-11-04 01:49:29 +0300 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2014-11-04 02:00:09 +0300 |
commit | 27a1d9cc2a96f665d87d215a99ab66b1780f0319 (patch) | |
tree | 8bfe0bebb7c120224bfc298177c30f9b89d86e54 /CMakeLists.txt | |
parent | 7e8a9f6b21fb1362fe6c50f1c9f1fcea2de3bdc0 (diff) |
fix recent cmake warnings and update cmake way of handling rpath
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 63b1a99..da0dab7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,10 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +IF(APPLE) + CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) + CMAKE_POLICY(VERSION 2.8.12) +ELSE() + CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) + CMAKE_POLICY(VERSION 2.8) +ENDIF() SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" |