Skip to content

Commit 7d8b648

Browse files
author
Karl Herbig
committed
remove the modbusepsi include path from CFLAGS and use a relative path instead (works better with bitbake)
1 parent 9d0d8a7 commit 7d8b648

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ else()
9393
add_subdirectory(3rdparty/json)
9494
endif()
9595

96-
set (MODBUSPP_CFLAGS_OTHER ${CMAKE_THREAD_LIBS_INIT} ${LIBMODBUS_CFLAGS})
96+
set (MODBUSPP_CFLAGS_OTHER ${CMAKE_THREAD_LIBS_INIT})
9797
set (MODBUSPP_LDFLAGS_OTHER ${LIBMODBUS_LDFLAGS} -lpthread)
9898

9999
include (GetDate)

modbuspp.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ URL: https://github.com/epsilonrt/libmodbuspp
1212
Version: @MODBUSPP_VERSION@
1313
Requires:
1414
Libs: -L${libdir} -lmodbuspp ${ldflags_other}
15-
Cflags: -I${includedir} ${cflags_other}
15+
Cflags: -I${includedir} -I${includedir}/@LIBMODBUS_NAME@ ${cflags_other}
1616

0 commit comments

Comments
 (0)