Use pkg-config variables for yaml-cpp. (#84)

Related to googlecartographer/cartographer_ros#117.
master
Holger Rapp 2016-10-19 17:11:31 +02:00 committed by GitHub
parent a560c97c2b
commit 15b58766f5
1 changed files with 3 additions and 1 deletions

View File

@ -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)