Added boost find/includes to the new API CMake instructions

This commit is contained in:
Jesse Beder
2012-01-11 13:19:31 -06:00
parent 5b32d89222
commit 92a35581d7

View File

@@ -90,6 +90,8 @@ if(YAML_CPP_BUILD_OLD_API)
list(APPEND private_headers ${common_private_headers} ${old_api_private_headers}) list(APPEND private_headers ${common_private_headers} ${old_api_private_headers})
add_definitions(-DYAML_CPP_OLD_API) add_definitions(-DYAML_CPP_OLD_API)
else() else()
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
list(APPEND sources ${common_sources} ${new_api_sources}) list(APPEND sources ${common_sources} ${new_api_sources})
list(APPEND public_headers ${common_public_headers} ${new_api_public_headers}) list(APPEND public_headers ${common_public_headers} ${new_api_public_headers})
list(APPEND private_headers ${common_private_headers} ${new_api_private_headers}) list(APPEND private_headers ${common_private_headers} ${new_api_private_headers})