summaryrefslogtreecommitdiffstats
path: root/tdeioslave/fish/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-12-15 04:06:31 +0100
committerSlávek Banko <slavek.banko@axis.cz>2024-12-15 04:09:34 +0100
commit83e4d7076e1e5dfac804c0f89a1fcdf31795671a (patch)
tree224530d9f0a86529ebac032cb43c619e5502f0be /tdeioslave/fish/CMakeLists.txt
parentd9e8abfdfe062a4bd0b8abebfbe400b76b03c207 (diff)
downloadtdebase-83e4d7076e1e5dfac804c0f89a1fcdf31795671a.tar.gz
tdebase-83e4d7076e1e5dfac804c0f89a1fcdf31795671a.zip
tdeioslave/fish: Use CMake code to generate fishcode.h.
Executable bit on these scripts in the source code is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeioslave/fish/CMakeLists.txt')
-rw-r--r--tdeioslave/fish/CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
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 )