mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
cmake: only define test policy on old versions
CMP0037 only reserves the test name if CTest is included on newer versions of CMake. This commit fixes a build warning.
This commit is contained in:
parent
6702c84d15
commit
3365410bde
@ -99,7 +99,8 @@ ADD_CUSTOM_TARGET(serial_test_high_level
|
||||
# Create the 'test' target.
|
||||
# Set a policy so CMake stops complaining about the name 'test'.
|
||||
CMAKE_POLICY(PUSH)
|
||||
IF(POLICY CMP0037)
|
||||
|
||||
IF(${CMAKE_VERSION} VERSION_LESS 3.11.0 AND POLICY CMP0037)
|
||||
CMAKE_POLICY(SET CMP0037 OLD)
|
||||
ENDIF()
|
||||
ADD_CUSTOM_TARGET(test)
|
||||
|
Loading…
x
Reference in New Issue
Block a user