Build: Only require GLib for IO binding example
This commit fixes
@@ -97,14 +97,12 @@ if (FOUND_NAME GREATER -1)
set (SRC_FILES notificationReload.c)
set (SOURCES ${SRC_FILES} ${HDR_FILES})
- # if (BUILD_FULL OR BUILD_STATIC) Work around missing header errors that occurs if only `BUILD_FULL`, but not `BUILD_SHARED`
- # is enabled.
+
find_package (GLib QUIET)
- find_package (libuv QUIET)
- include_directories (${GLib_INCLUDE_DIRS} ${libuv_INCLUDE_DIRS})
+ include_directories (${GLib_INCLUDE_DIRS})
list (APPEND SOURCES
- $<TARGET_OBJECTS:elektra-io-glib-objects>) # add sources for elektra-io-uv for static and full builds endif ()
+ $<TARGET_OBJECTS:elektra-io-glib-objects>)
add_executable (${EXAMPLE} ${SOURCES})
add_dependencies (${EXAMPLE} kdberrors_generated elektra_error_codes_generated)
