Include boost spirit in order to compile opm-common.

This commit is contained in:
Ruben Thoms authored and Magne Sjaastad committed 2020-11-16 11:34:09 +01:00
1 parent df2a6fb9d9
commit a180fc431b
2 files changed
+6 -1

No files matched your search

+1
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)
+5 -1
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}
)