From f2496929dc6301ddb3ab88eed555bdcdff53e1c1 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Fri, 16 Oct 2015 03:39:16 +0300 Subject: cmake test: use policy CMP0020 only if available Policy CMP0020 was introduced in cmake 2.8.11. Debian CMake version 2.8.9 is sufficient for building Qt. See https://github.com/LuaAndC/mxe/commit/6133f6ec74aee1b5fa531782e585710 close #909 --- src/cmake/test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmake/test/CMakeLists.txt b/src/cmake/test/CMakeLists.txt index dd600ac..864075c 100644 --- a/src/cmake/test/CMakeLists.txt +++ b/src/cmake/test/CMakeLists.txt @@ -9,7 +9,9 @@ project(mxe NONE) # see cmake --help-policy 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}) -- cgit v0.12