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