Augeas: Fix internal inconsistency
@@ -23,6 +23,9 @@ if (DEPENDENCY_PHASE)
else (LIBAUGEAS_FOUND)
remove_plugin (augeas "libaugeas not found (libaugeas-dev >= 0.16 needed)")
endif ()
+
+ set (AUGEAS_PLUGIN_INCLUDE_DIRS ${LIBAUGEAS_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR})
+ set (AUGEAS_PLUGIN_LIBRARIES ${LIBAUGEAS_LIBRARIES} ${LIBXML2_LIBRARIES})
endif ()
add_plugin(augeas
@@ -32,16 +35,14 @@ add_plugin(augeas
ADD_TEST
INSTALL_TEST_DATA
INCLUDE_DIRECTORIES
- ${LIBAUGEAS_INCLUDE_DIR}
- ${LIBXML2_INCLUDE_DIR}
+ ${AUGEAS_PLUGIN_INCLUDE_DIRS}
COMPILE_DEFINITIONS
"${LIBAUGEAS_COMPILE_DEFINITIONS}"
LINK_ELEKTRA
elektra-meta
elektra-proposal
LINK_LIBRARIES
- ${LIBAUGEAS_LIBRARIES}
- ${LIBXML2_LIBRARIES}
+ ${AUGEAS_PLUGIN_LIBRARIES}
)
if (ADDTESTING_PHASE)
