Merge topic 'patch-find-patch-2'
e39f0bcf34
FindPatch: Mark Patch_EXECUTABLE as advanced variable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10165
This commit is contained in:
commit
c36ba41bee
@ -58,6 +58,8 @@ if(CMAKE_HOST_WIN32)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
mark_as_advanced(Patch_EXECUTABLE)
|
||||||
|
|
||||||
if(Patch_EXECUTABLE AND NOT TARGET Patch::patch)
|
if(Patch_EXECUTABLE AND NOT TARGET Patch::patch)
|
||||||
add_executable(Patch::patch IMPORTED)
|
add_executable(Patch::patch IMPORTED)
|
||||||
set_property(TARGET Patch::patch PROPERTY IMPORTED_LOCATION ${Patch_EXECUTABLE})
|
set_property(TARGET Patch::patch PROPERTY IMPORTED_LOCATION ${Patch_EXECUTABLE})
|
||||||
|
Loading…
Reference in New Issue
Block a user