fix python link for dependents

This commit is contained in:
Arne Morten Kvarving
2019-09-04 12:59:39 +02:00
committed by Joakim Hove
parent 97ad4baa99
commit 16d38c3245

View File

@@ -297,9 +297,8 @@ if (OPM_ENABLE_PYTHON)
# 2: Embed the Python interpreter for keywords like PYACTION and PYINPUT
if (OPM_ENABLE_EMBEDDED_PYTHON)
add_subdirectory(python/pybind11)
#target_link_libraries(opmcommon PRIVATE pybind11::embed)
include_directories("python/pybind11/include;${PYTHON_INCLUDE_DIRS}")
target_link_libraries(opmcommon PRIVATE ${PYTHON_LIBRARY})
target_include_directories(opmcommon PRIVATE "python/pybind11/include;${PYTHON_INCLUDE_DIRS}")
target_link_libraries(opmcommon PUBLIC ${PYTHON_LIBRARY})
add_definitions(-DEMBEDDED_PYTHON)
endif()