From 2ac385f4db1bebb9314d5e45011621b5774cec62 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 6 Oct 2022 11:23:53 +0200 Subject: 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. --- Meta/CMake/code_generators.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Meta/CMake') 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 $ ${source} > ${output}.tmp -- cgit v1.2.3