프로젝트를 빌드 할 때 Boost_LIBRARIES에는 program_options가 포함되어 있지 않지만 필수 요소는 있습니다. 수동으로 추가하면 제대로 작동합니다. 내 CMake에 포함 된 다음Boost_LIBRARIES에는 program_options이 포함되어 있지 않습니다.
find_package(Boost 1.60.0 REQUIRED COMPONENTS program_options thread system regex)
message("${Boost_LIBRARIES}")
include_directories(include ${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
target_link_libraries (proj ${Boost_LIBRARIES} boost_program_options)
CMake 라이브러리가 발견 된 주장하지만, 그것은 현대 CMake에 대한 코드를 다시 작성 message("${Boost_LIBRARIES}")
무엇 CMake 버전 당신은 사용합니까? – zaufi