From f2fdfe98c95d733765426b4bb742adfd227a7853 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Wed, 9 Apr 2025 13:57:18 +0100 Subject: [PATCH] CMake: Remove DEPENDS from add_custom_command() --- generator/vk_codegen/source_CMakeLists.txt | 1 - layer_example/source/CMakeLists.txt | 3 +-- layer_gpu_support/source/CMakeLists.txt | 3 +-- layer_gpu_timeline/source/CMakeLists.txt | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/generator/vk_codegen/source_CMakeLists.txt b/generator/vk_codegen/source_CMakeLists.txt index 640fa85..eb6e595 100644 --- a/generator/vk_codegen/source_CMakeLists.txt +++ b/generator/vk_codegen/source_CMakeLists.txt @@ -65,7 +65,6 @@ target_link_libraries( if (CMAKE_BUILD_TYPE STREQUAL "Release") add_custom_command( TARGET "${VK_LAYER}" POST_BUILD - DEPENDS "${VK_LAYER}" COMMAND ${CMAKE_STRIP} ARGS --strip-all -o ${VK_LAYER_STRIP} $ COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}") diff --git a/layer_example/source/CMakeLists.txt b/layer_example/source/CMakeLists.txt index f6275f8..46a95d1 100644 --- a/layer_example/source/CMakeLists.txt +++ b/layer_example/source/CMakeLists.txt @@ -66,10 +66,9 @@ target_link_libraries( if (CMAKE_BUILD_TYPE STREQUAL "Release") add_custom_command( TARGET "${VK_LAYER}" POST_BUILD - DEPENDS "${VK_LAYER}" COMMAND ${CMAKE_STRIP} ARGS --strip-all -o ${VK_LAYER_STRIP} $ COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}") endif() -add_clang_tools() \ No newline at end of file +add_clang_tools() diff --git a/layer_gpu_support/source/CMakeLists.txt b/layer_gpu_support/source/CMakeLists.txt index 3365835..0b3338b 100644 --- a/layer_gpu_support/source/CMakeLists.txt +++ b/layer_gpu_support/source/CMakeLists.txt @@ -74,10 +74,9 @@ target_link_libraries( if (CMAKE_BUILD_TYPE STREQUAL "Release") add_custom_command( TARGET "${VK_LAYER}" POST_BUILD - DEPENDS "${VK_LAYER}" COMMAND ${CMAKE_STRIP} ARGS --strip-all -o ${VK_LAYER_STRIP} $ COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}") endif() -add_clang_tools() \ No newline at end of file +add_clang_tools() diff --git a/layer_gpu_timeline/source/CMakeLists.txt b/layer_gpu_timeline/source/CMakeLists.txt index cc1781c..6b626a5 100644 --- a/layer_gpu_timeline/source/CMakeLists.txt +++ b/layer_gpu_timeline/source/CMakeLists.txt @@ -81,10 +81,9 @@ target_link_libraries( if (CMAKE_BUILD_TYPE STREQUAL "Release") add_custom_command( TARGET "${VK_LAYER}" POST_BUILD - DEPENDS "${VK_LAYER}" COMMAND ${CMAKE_STRIP} ARGS --strip-all -o ${VK_LAYER_STRIP} $ COMMENT "Stripped lib${VK_LAYER}.so to ${VK_LAYER_STRIP}") endif() -add_clang_tools() \ No newline at end of file +add_clang_tools()