fcitx: fix build with gir

closes #9637
This commit is contained in:
maxice8 2019-04-03 21:40:56 -03:00
parent 47515867ee
commit 26422862e5
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -0,0 +1,14 @@
diff --git src/lib/fcitx-gclient/CMakeLists.txt src/lib/fcitx-gclient/CMakeLists.txt
index ea1d50f..20b2359 100644
--- src/lib/fcitx-gclient/CMakeLists.txt
+++ src/lib/fcitx-gclient/CMakeLists.txt
@@ -65,6 +65,8 @@ install(FILES ${FCITX_GCLIENT_HEADERS}
if(ENABLE_GIR)
include(GObjectIntrospection)
+ string(REPLACE "///" "/" GOBJECT_INTROSPECTION_GIRDIR "${GOBJECT_INTROSPECTION_GIRDIR}")
+ string(REPLACE "///" "/" GOBJECT_INTROSPECTION_TYPELIBDIR "${GOBJECT_INTROSPECTION_TYPELIBDIR}")
gobject_introspection(
FILENAME Fcitx-1.0.gir
NSVERSION 1.0