[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[csmith-project/csmith] eaaabc: Avoid error when using CMake pre-3.0.
Branch: refs/heads/master
Home: https://github.com/csmith-project/csmith
Commit: eaaabcf73441b1c4aa6496a719bd968ea0c201d8
https://github.com/csmith-project/csmith/commit/eaaabcf73441b1c4aa6496a719bd968ea0c201d8
Author: Eric Eide <eeide@cs.utah.edu>
Date: 2017-06-24 (Sat, 24 Jun 2017)
Changed paths:
M runtime/CMakeLists.txt
Log Message:
-----------
Avoid error when using CMake pre-3.0.
Check for policy CMP0042. If it is not known, don't try to set it.
This check-before-set idiom is suggested by the CMake documentation.
See <https://cmake.org/cmake/help/v3.0/manual/cmake-policies.7.html>.
Without this check, CMake pre-3.0 gives an error.
BTW, did you know that CMake 2.8 is the default on CentOS 7.3?