Include boost spirit in order to compile opm-common.

This commit is contained in:
Ruben Thoms 2020-11-13 10:42:47 +01:00 committed by Magne Sjaastad
parent df2a6fb9d9
commit a180fc431b
2 changed files with 6 additions and 1 deletions

View File

@ -278,6 +278,7 @@ endif() # MSVC
if (VCPKG_AUTO_INSTALL)
vcpkg_install(boost-filesystem)
vcpkg_install(boost-spirit)
endif()
add_subdirectory(ThirdParty/custom-opm-flowdiagnostics)

View File

@ -81,12 +81,16 @@ add_library(${PROJECT_NAME}
opm-common/src/opm/io/eclipse/rst/header.cpp
)
find_path(BOOST_SPIRIT_INCLUDE_DIRS "boost/spirit.hpp")
target_link_libraries(custom-opm-common
boost-Subset
${ADDITIONAL_LINK_LIBRARIES}
)
target_include_directories(custom-opm-common
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/opm-common
${CMAKE_CURRENT_SOURCE_DIR}/generated-opm-common/include
PRIVATE
${BOOST_SPIRIT_INCLUDE_DIRS}
)