Skip to content

Commit

Permalink
Fix compatibility with older cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed May 16, 2023
1 parent 4eec033 commit ff81e95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion external/glib/generate_cppgir.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ function(generate_cppgir target_name gir)

set(gen_timestamp ${gen_dst}/${target_name}_cppgir.timestamp)

set(gir_path)
if (IS_ABSOLUTE "${gir}")
set(gir_path ${gir})
endif()

add_custom_command(
OUTPUT
${gen_timestamp}
Expand All @@ -28,7 +33,7 @@ function(generate_cppgir target_name gir)
COMMENT "Generating C++ wrapper for ${gir} (${target_name})"
DEPENDS
cppgir
$<$<PATH:IS_ABSOLUTE,${gir}>:${gir}>
${gir_path}
)
generate_target(${target_name} cppgir ${gen_timestamp} "" ${gen_dst})

Expand Down

0 comments on commit ff81e95

Please sign in to comment.