Use pkg-config variables for yaml-cpp. (#84)
Related to googlecartographer/cartographer_ros#117.master
parent
a560c97c2b
commit
15b58766f5
|
@ -104,7 +104,9 @@ macro(_common_compile_stuff VISIBILITY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ARG_USES_YAMLCPP)
|
if(ARG_USES_YAMLCPP)
|
||||||
target_link_libraries("${NAME}" yaml-cpp)
|
target_include_directories("${NAME}" SYSTEM ${VISIBILITY}
|
||||||
|
"${YAMLCPP_INCLUDE_DIRS}")
|
||||||
|
target_link_libraries("${NAME}" ${YAMLCPP_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ARG_USES_CAIRO)
|
if(ARG_USES_CAIRO)
|
||||||
|
|
Loading…
Reference in New Issue