mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-29 10:58:22 +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}")
|
if(NOT "${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
||||||
add_custom_target(distclean)
|
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}"
|
COMMAND ${CMAKE_COMMAND} -E remove_directory "${PROJECT_BINARY_DIR}"
|
||||||
COMMENT "Removing the build directory and its content")
|
COMMENT "Removing the build directory and its content")
|
||||||
elseif(IS_DIRECTORY .git AND GIT)
|
elseif(IS_DIRECTORY .git AND GIT)
|
||||||
add_custom_target(distclean)
|
add_custom_target(distclean)
|
||||||
add_custom_command(TARGET distclean
|
add_custom_command(TARGET distclean POST_BUILD
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||||
COMMAND ${GIT} submodule foreach --recursive git clean -f -X -d
|
COMMAND ${GIT} submodule foreach --recursive git clean -f -X -d
|
||||||
COMMAND ${GIT} clean -f -X -d
|
COMMAND ${GIT} clean -f -X -d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user