mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
CMake: Don't mess with absolute compile_ipc() source paths
If given an absolute path, compile_ipc() should just use it verbatim instead of trying to be helpful.
This commit is contained in:
parent
b5681992e1
commit
2ac385f4db
Notes:
sideshowbarker
2024-07-17 06:20:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2ac385f4db
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ function(compile_gml source output string_name)
|
|||
endfunction()
|
||||
|
||||
function(compile_ipc source output)
|
||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||
if (NOT IS_ABSOLUTE ${source})
|
||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||
endif()
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND $<TARGET_FILE:Lagom::IPCCompiler> ${source} > ${output}.tmp
|
||||
|
|
Loading…
Reference in a new issue