From 83e4d7076e1e5dfac804c0f89a1fcdf31795671a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 15 Dec 2024 04:06:31 +0100 Subject: tdeioslave/fish: Use CMake code to generate fishcode.h. Executable bit on these scripts in the source code is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdeioslave/fish/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tdeioslave/fish/CMakeLists.txt') diff --git a/tdeioslave/fish/CMakeLists.txt b/tdeioslave/fish/CMakeLists.txt index d7a30416b..c228c27ca 100644 --- a/tdeioslave/fish/CMakeLists.txt +++ b/tdeioslave/fish/CMakeLists.txt @@ -35,8 +35,14 @@ tde_create_translated_desktop( ##### tdeio_fish (module) ######################### add_custom_command( OUTPUT fishcode.h - COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/genfishcode.pl ${CMAKE_CURRENT_SOURCE_DIR}/fish.pl > fishcode.h - DEPENDS fish.pl ) + COMMAND ${CMAKE_COMMAND} + -DMASTER_CURRENT_SOURCE_DIR:FILEPATH="${CMAKE_CURRENT_SOURCE_DIR}" + -DFISH_CODE_SOURCE:FILEPATH="fish.pl" + -DFISH_CODE_OUTPUT:FILEPATH="fishcode.h" + -P "${CMAKE_CURRENT_SOURCE_DIR}/genfishcode.cmake" + COMMENT "Generate fishcode.h" + DEPENDS fish.pl +) set_property( SOURCE fish.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/fishcode.h ) -- cgit v1.2.1