Let cppgir use g_object_new_with_properties
This commit is contained in:
parent
b99a79b9a2
commit
7b9e2b60b4
1 changed files with 2 additions and 2 deletions
4
external/glib/generate_cppgir.cmake
vendored
4
external/glib/generate_cppgir.cmake
vendored
|
|
@ -44,9 +44,9 @@ function(generate_cppgir target_name gir)
|
|||
get_target_property(target_type ${target_name} TYPE)
|
||||
if (${target_type} STREQUAL "INTERFACE_LIBRARY")
|
||||
target_link_libraries(${target_name} INTERFACE CppGir::gi)
|
||||
target_compile_definitions(${target_name} INTERFACE GI_INLINE GI_OBJECT_NEWV)
|
||||
target_compile_definitions(${target_name} INTERFACE GI_INLINE)
|
||||
else()
|
||||
target_link_libraries(${target_name} PUBLIC CppGir::gi)
|
||||
target_compile_definitions(${target_name} PUBLIC GI_INLINE GI_OBJECT_NEWV)
|
||||
target_compile_definitions(${target_name} PUBLIC GI_INLINE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue