Fix compiling if sourcery is pre-existing and binary dir and source dir are equal.
This commit is contained in:
parent
4ee59b9aaf
commit
f24d97b510
1 changed files with 7 additions and 3 deletions
|
@ -333,9 +333,13 @@ endif(DOXYGEN_FOUND)
|
|||
# Sourcery #
|
||||
########################################
|
||||
if (EXISTS "${SOURCE_DIR}/sourcery")
|
||||
if (EXISTS "${BINARY_DIR}/sourcery")
|
||||
add_custom_target(sourcery )
|
||||
else()
|
||||
add_custom_target(sourcery
|
||||
COMMAND cp ${SOURCE_DIR}/sourcery ${BINARY_DIR}/sourcery
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
add_executable(sourcery
|
||||
src/sourcery.cpp
|
||||
|
|
Loading…
Add table
Reference in a new issue