mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm-locstats] Copy the script only when needed; NFC
llvm-svn: 373596
This commit is contained in:
parent
53ff87f900
commit
e7e0259a88
@ -1,7 +1,12 @@
|
||||
if (LLVM_BUILD_UTILS AND LLVM_BUILD_TOOLS)
|
||||
add_custom_target(llvm-locstats ALL
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
||||
add_custom_command(
|
||||
OUTPUT ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
||||
DEPENDS ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
||||
COMMENT "Copying llvm-locstats into ${LLVM_TOOLS_BINARY_DIR}"
|
||||
)
|
||||
add_custom_target(llvm-locstats ALL
|
||||
DEPENDS ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
||||
)
|
||||
set_target_properties(llvm-locstats PROPERTIES FOLDER "Tools")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user