Commit eec9a6cd authored by Jan Grulich's avatar Jan Grulich
Browse files

Fix build

When building gtk2 based stuff we need to be sure gtk2 includes are included first
and also search properly for gio includes
parent 87040960
......@@ -78,12 +78,12 @@ PKG_CHECK_MODULES(PC_GIO2 REQUIRED gio-2.0)
SET(GLIB2_DEFINITIONS ${PC_GIO2_CXXFLAGS_OTHER})
FIND_PATH(
GIO2_INCLUDE_DIR_PART1 gio.h
GIO2_INCLUDE_DIR_PART1 glib.h
HINTS ${PC_GIO2_INCLUDEDIR} ${PC_GIO2_INCLUDE_DIRS}
PATH_SUFFIXES gio)
FIND_PATH(
GIO2_INCLUDE_DIR_PART2 gobject.h
GIO2_INCLUDE_DIR_PART2 gio.h
HINTS ${PC_GIO2_INCLUDEDIR} ${PC_GIO2_INCLUDE_DIRS}
PATH_SUFFIXES glib-2.0/gio)
......
find_package(GTK2 REQUIRED)
include_directories(${GTK2_INCLUDE_DIRS})
include_directories(BEFORE ${GTK2_INCLUDE_DIRS})
add_executable(reload_gtk_apps reload.c)
target_link_libraries(reload_gtk_apps ${GTK2_LIBRARIES})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment