diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-10-16 01:50:18 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-16 01:50:18 (GMT) |
commit | 91d952eb1152437fa9d8b75d672a027e507c8fe3 (patch) | |
tree | 9969d2ae42f8c5dce051eed34d588e7b2365593d | |
parent | a7aa0377e74889b6fd6a0bd856eeb43e730dbd24 (diff) | |
parent | f2496929dc6301ddb3ab88eed555bdcdff53e1c1 (diff) | |
download | mxe-91d952eb1152437fa9d8b75d672a027e507c8fe3.zip mxe-91d952eb1152437fa9d8b75d672a027e507c8fe3.tar.gz mxe-91d952eb1152437fa9d8b75d672a027e507c8fe3.tar.bz2 |
Merge pull request #940 from LuaAndC/decrease-cmake-version
Decrease cmake version and check for policies used
-rw-r--r-- | src/cmake/test/CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cmake/test/CMakeLists.txt b/src/cmake/test/CMakeLists.txt index 095050e..864075c 100644 --- a/src/cmake/test/CMakeLists.txt +++ b/src/cmake/test/CMakeLists.txt @@ -1,16 +1,17 @@ # This file is part of MXE. # See index.html for further information. -# 2.8.11 is recommended as a minimum for Qt5 -# http://doc.qt.io/qt-5/cmake-manual.html -cmake_minimum_required(VERSION 2.8.11) +# 2.8.9 is Debian Wheezy version +cmake_minimum_required(VERSION 2.8.9) # set languages in individual modules project(mxe NONE) # see cmake --help-policy <cmp> for details cmake_policy(SET CMP0017 NEW) -cmake_policy(SET CMP0020 NEW) +if (POLICY CMP0020) + cmake_policy(SET CMP0020 NEW) +endif() # so we can find pkg-test.cmake files to include set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../.. ${CMAKE_MODULE_PATH}) |