mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +00:00
CMake: Allow the names of utilities to contain extensions
Previously, we would remove the "longest extension" from each file name when parsing it as the name of a utility, which made it impossible for the names of utilities to contain any extensions.
This commit is contained in:
parent
8384bb138e
commit
f2503b2048
Notes:
sideshowbarker
2024-07-16 19:17:47 +09:00
Author: https://github.com/implicitfield
Commit: f2503b2048
Pull-request: https://github.com/SerenityOS/serenity/pull/22810
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ list(APPEND RECOMMENDED_TARGETS
|
|||
# FIXME: Support specifying component dependencies for utilities (e.g. WebSocket for telws)
|
||||
|
||||
foreach(CMD_SRC ${CMD_SOURCES})
|
||||
get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE)
|
||||
get_filename_component(CMD_NAME_WITH_EXTENSION ${CMD_SRC} NAME)
|
||||
string(REPLACE ".cpp" "" CMD_NAME ${CMD_NAME_WITH_EXTENSION})
|
||||
if (CMD_NAME IN_LIST SPECIAL_TARGETS)
|
||||
set(TARGET_NAME "${CMD_NAME}-bin")
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue