summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
ef38e4f)
Change-Id: I3cb68b4c431c064e5a34cac5466c3f8afdf06f3b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
# Loop on required package and add options
foreach (PKG_CONFIG ${PKG_REQUIRED_LIST})
# Loop on required package and add options
foreach (PKG_CONFIG ${PKG_REQUIRED_LIST})
- PKG_CHECK_MODULES(${PKG_CONFIG} REQUIRED ${PKG_CONFIG})
+ string(REGEX REPLACE "[<>]?=.*$" "" XPREFIX ${PKG_CONFIG})
+ PKG_CHECK_MODULES(${XPREFIX} REQUIRED ${PKG_CONFIG})
- INCLUDE_DIRECTORIES(${${PKG_CONFIG}_INCLUDE_DIRS})
- list (APPEND link_libraries ${${PKG_CONFIG}_LIBRARIES})
- add_compile_options (${${PKG_CONFIG}_CFLAGS})
+ INCLUDE_DIRECTORIES(${${XPREFIX}_INCLUDE_DIRS})
+ list (APPEND link_libraries ${${XPREFIX}_LIBRARIES})
+ add_compile_options (${${XPREFIX}_CFLAGS})
endforeach(PKG_CONFIG)
# Optional LibEfence Malloc debug library
endforeach(PKG_CONFIG)
# Optional LibEfence Malloc debug library