mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
Try disabling CMP00037 regardless of CMake version
This commit is contained in:
parent
aa25c4eccc
commit
1fd92f493a
|
@ -26,7 +26,7 @@ endif()
|
|||
|
||||
# Set a policy so CMake stops complaining when we use the target name "test"
|
||||
cmake_policy(PUSH)
|
||||
if(${CMAKE_VERSION} VERSION_LESS 3.11.0 AND POLICY CMP0037)
|
||||
if(POLICY CMP0037)
|
||||
cmake_policy(SET CMP0037 OLD)
|
||||
endif()
|
||||
add_custom_target(test
|
||||
|
|
Loading…
Reference in New Issue
Block a user