File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set(LOGGEN_HELPER_SOURCE
9
9
10
10
add_library (loggen_helper STATIC ${LOGGEN_HELPER_SOURCE} )
11
11
12
- include_directories (loggen_helper PUBLIC
12
+ target_include_directories (loggen_helper PUBLIC
13
13
${CORE_INCLUDE_DIRS}
14
14
${CMAKE_CURRENT_SOURCE_DIR}
15
15
${GLIB_INCLUDE_DIRS}
@@ -32,14 +32,13 @@ set_target_properties(loggen_helper
32
32
install (TARGETS loggen_helper ARCHIVE DESTINATION ${LOGGEN_PLUGIN_INSTALL_DIR} )
33
33
34
34
# ########### loggen_plugin common static lib for plugins #####
35
- set (LOGGEN_PLUGIN_SOURCE
35
+
36
+ add_library (loggen_plugin STATIC
36
37
loggen_plugin.c
37
38
loggen_plugin.h
38
- )
39
-
40
- add_library (loggen_plugin STATIC ${LOGGEN_HELPER_SOURCE} )
39
+ )
41
40
42
- include_directories (loggen_plugin PUBLIC loggen_helper)
41
+ target_link_libraries (loggen_plugin PUBLIC loggen_helper)
43
42
44
43
set_target_properties (loggen_plugin
45
44
PROPERTIES VERSION ${SYSLOG_NG_VERSION}
Original file line number Diff line number Diff line change 1
1
add_unit_test(CRITERION TARGET test_loggen_filereader DEPENDS loggen_helper)
2
- include_directories (test_loggen_filereader PUBLIC
2
+ target_include_directories (test_loggen_filereader PUBLIC
3
3
${PROJECT_SOURCE_DIR}
4
4
)
You can’t perform that action at this time.
0 commit comments