mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
build-system: prevent recursive symbolic links
If cmake is called multiple times we can end up with a recursive set of symbolic links that can confuse package build scripts. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ef5c94bb81
commit
ff694af92b
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ if(NOT NO_DOCS)
|
|||
COMMAND
|
||||
mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ &&
|
||||
rm -rf ${CMAKE_BINARY_DIR}/Documentation/images &&
|
||||
rm -rf ${CMAKE_BINARY_DIR}/Documentation/mobile-images &&
|
||||
ln -sf ${CMAKE_SOURCE_DIR}/Documentation/images ${CMAKE_BINARY_DIR}/Documentation/images &&
|
||||
ln -sf ${CMAKE_SOURCE_DIR}/Documentation/mobile-images ${CMAKE_BINARY_DIR}/Documentation/mobile-images
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue