mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-28 00:38:20 +08:00
mdbx-cmake: исправление упущенных POST_BUILD
в add_custom_command()
.
This commit is contained in:
parent
e2b4245abe
commit
5862a4b542
@ -429,12 +429,12 @@ else()
|
||||
|
||||
if(NOT "${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
||||
add_custom_target(distclean)
|
||||
add_custom_command(TARGET distclean
|
||||
add_custom_command(TARGET distclean POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E remove_directory "${PROJECT_BINARY_DIR}"
|
||||
COMMENT "Removing the build directory and its content")
|
||||
elseif(IS_DIRECTORY .git AND GIT)
|
||||
add_custom_target(distclean)
|
||||
add_custom_command(TARGET distclean
|
||||
add_custom_command(TARGET distclean POST_BUILD
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
COMMAND ${GIT} submodule foreach --recursive git clean -f -X -d
|
||||
COMMAND ${GIT} clean -f -X -d
|
||||
|
Loading…
x
Reference in New Issue
Block a user