summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-10-06 11:23:53 +0200
committerAndreas Kling <kling@serenityos.org>2022-10-06 11:23:53 +0200
commit2ac385f4db1bebb9314d5e45011621b5774cec62 (patch)
tree05d45f86d567291d08cdc0de5c565d8881c207af /Meta/CMake
parentb5681992e1caebeac2d95d84690e06dd99234439 (diff)
downloadserenity-2ac385f4db1bebb9314d5e45011621b5774cec62.zip
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.
Diffstat (limited to 'Meta/CMake')
-rw-r--r--Meta/CMake/code_generators.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Meta/CMake/code_generators.cmake b/Meta/CMake/code_generators.cmake
index 01f21aae67..4cc0235d92 100644
--- a/Meta/CMake/code_generators.cmake
+++ b/Meta/CMake/code_generators.cmake
@@ -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