M daemon/CMakeLists.txt +5 -4
@@ 30,10 30,6 @@ add_executable(hlogd
wsjtx.c
)
-set_target_properties(hlogd PROPERTIES
- LINK_FLAGS "-L${GPS_LIBRARY_DIRS}"
-)
-
target_include_directories(hlogd PRIVATE
${GPS_INCLUDE_DIRS}
)
@@ 45,3 41,8 @@ target_link_libraries(hlogd
hlogrpc
pthread
)
+
+target_link_directories(hlogd
+ PRIVATE
+ "${GPS_LIBRARY_DIRS}"
+)
M rpc/CMakeLists.txt +6 -6
@@ 29,12 29,6 @@ add_library(hlogrpc SHARED
hamlib.c
)
-if(ZEROMQ_LIBRARY_DIRS)
- set_target_properties(hlogrpc PROPERTIES
- LINK_FLAGS "-L${ZEROMQ_LIBRARY_DIRS} -L${HAMLIB_LIBRARY_DIRS}"
- )
-endif()
-
target_include_directories(hlogrpc PRIVATE
${ZEROMQ_INCLUDE_DIRS}
${HAMLIB_INCLUDE_DIRS}
@@ 48,3 42,9 @@ target_link_libraries(hlogrpc
hlogcommon
m
)
+
+target_link_directories(hlogrpc
+ PRIVATE
+ "${ZEROMQ_LIBRARY_DIRS}"
+ "${HAMLIB_LIBRARY_DIRS}"
+)