diff options
Diffstat (limited to 'src')
-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}) |