Commit 1657e46c authored by Bill Hoffman's avatar Bill Hoffman
Browse files

fix code for CI

parent 3d54d788
Pipeline #183674 failed with stage
in 0 seconds
......@@ -8,6 +8,8 @@ function(add_autopybind11_test name)
--build-project ${name}
--build-options "-DPYBIND11_SRC_DIR=${pybind11_SOURCE_DIR}"
"-DAutoPyBind11_DIR=${AutoPyBind11_DIR}"
"-DCastXML_EXECUTABLE=${CastXML_EXECUTABLE}"
"-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}"
--test-command ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/${name}/${name}.py
--build-run-dir ${CMAKE_CURRENT_BINARY_DIR}/${name}
......
......@@ -4,7 +4,7 @@ project(simple CXX)
find_package(AutoPyBind11)
autopybind11_fetch_build_pybind11(PYBIND11_DIR ${PYBIND11_SRC_DIR})
add_library(simpleLib simple.cxx)
set_property(TARGET simpleLib PROPERTY POSITION_INDEPENDENT_CODE ON)
autopybind11_add_module("simpleTest" YAML_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/simple_wrap.yml
# CONFIG_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/config.yml
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
LINK_LIBRARIES simpleLib)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment