Skip to content

Commit 1d1f2d9

Browse files
authored
CMake: Remove DEPENDS from add_custom_command() (#113)
1 parent f615063 commit 1d1f2d9

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

generator/vk_codegen/source_CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ target_link_libraries(
6565
if (CMAKE_BUILD_TYPE STREQUAL "Release")
6666
add_custom_command(
6767
TARGET "${VK_LAYER}" POST_BUILD
68-
DEPENDS "${VK_LAYER}"
6968
COMMAND ${CMAKE_STRIP}
7069
ARGS --strip-all -o ${VK_LAYER_STRIP} $<TARGET_FILE:${VK_LAYER}>
7170
COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}")

layer_example/source/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ target_link_libraries(
6666
if (CMAKE_BUILD_TYPE STREQUAL "Release")
6767
add_custom_command(
6868
TARGET "${VK_LAYER}" POST_BUILD
69-
DEPENDS "${VK_LAYER}"
7069
COMMAND ${CMAKE_STRIP}
7170
ARGS --strip-all -o ${VK_LAYER_STRIP} $<TARGET_FILE:${VK_LAYER}>
7271
COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}")
7372
endif()
7473

75-
add_clang_tools()
74+
add_clang_tools()

layer_gpu_support/source/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ target_link_libraries(
7474
if (CMAKE_BUILD_TYPE STREQUAL "Release")
7575
add_custom_command(
7676
TARGET "${VK_LAYER}" POST_BUILD
77-
DEPENDS "${VK_LAYER}"
7877
COMMAND ${CMAKE_STRIP}
7978
ARGS --strip-all -o ${VK_LAYER_STRIP} $<TARGET_FILE:${VK_LAYER}>
8079
COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}")
8180
endif()
8281

83-
add_clang_tools()
82+
add_clang_tools()

layer_gpu_timeline/source/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ target_link_libraries(
8181
if (CMAKE_BUILD_TYPE STREQUAL "Release")
8282
add_custom_command(
8383
TARGET "${VK_LAYER}" POST_BUILD
84-
DEPENDS "${VK_LAYER}"
8584
COMMAND ${CMAKE_STRIP}
8685
ARGS --strip-all -o ${VK_LAYER_STRIP} $<TARGET_FILE:${VK_LAYER}>
8786
COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}")
8887
endif()
8988

90-
add_clang_tools()
89+
add_clang_tools()

0 commit comments

Comments
 (0)