Fix compatibility with older cmake
This commit is contained in:
parent
4eec033889
commit
ff81e9562d
1 changed files with 6 additions and 1 deletions
7
external/glib/generate_cppgir.cmake
vendored
7
external/glib/generate_cppgir.cmake
vendored
|
|
@ -11,6 +11,11 @@ function(generate_cppgir target_name gir)
|
||||||
|
|
||||||
set(gen_timestamp ${gen_dst}/${target_name}_cppgir.timestamp)
|
set(gen_timestamp ${gen_dst}/${target_name}_cppgir.timestamp)
|
||||||
|
|
||||||
|
set(gir_path)
|
||||||
|
if (IS_ABSOLUTE "${gir}")
|
||||||
|
set(gir_path ${gir})
|
||||||
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT
|
OUTPUT
|
||||||
${gen_timestamp}
|
${gen_timestamp}
|
||||||
|
|
@ -28,7 +33,7 @@ function(generate_cppgir target_name gir)
|
||||||
COMMENT "Generating C++ wrapper for ${gir} (${target_name})"
|
COMMENT "Generating C++ wrapper for ${gir} (${target_name})"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
cppgir
|
cppgir
|
||||||
$<$<PATH:IS_ABSOLUTE,${gir}>:${gir}>
|
${gir_path}
|
||||||
)
|
)
|
||||||
generate_target(${target_name} cppgir ${gen_timestamp} "" ${gen_dst})
|
generate_target(${target_name} cppgir ${gen_timestamp} "" ${gen_dst})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue