diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-16 00:39:16 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-10-16 00:42:25 (GMT) |
commit | f2496929dc6301ddb3ab88eed555bdcdff53e1c1 (patch) | |
tree | 477dca2cb89924018d5de63857506361846eb3d5 /src/cmake/test | |
parent | cea54f1cfac9813588e6e2a5c9e4da7de57ab97b (diff) | |
download | mxe-f2496929dc6301ddb3ab88eed555bdcdff53e1c1.zip mxe-f2496929dc6301ddb3ab88eed555bdcdff53e1c1.tar.gz mxe-f2496929dc6301ddb3ab88eed555bdcdff53e1c1.tar.bz2 |
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
Diffstat (limited to 'src/cmake/test')
-rw-r--r-- | src/cmake/test/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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}) |