Commit b22941f3 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

deactivate py2cpp benchmarks when py2ccp is not activated

parent 70caf3b0
......@@ -8,5 +8,7 @@ FOREACH(BENCHMARK_NAME ${${PROJECT_NAME}_BENCHMARK})
target_link_libraries(${BENCHMARK_NAME} PUBLIC ${PROJECT_NAME} crocoddyl::crocoddyl)
ENDFOREACH(BENCHMARK_NAME ${${PROJECT_NAME}_BENCHMARK})
target_compile_definitions(bench-mpc-walk PRIVATE PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
target_link_libraries(bench-mpc-walk PUBLIC ${PROJECT_NAME}_py2cpp)
if(BUILD_PY2CPP_INTERFACE)
target_compile_definitions(bench-mpc-walk PRIVATE PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
target_link_libraries(bench-mpc-walk PUBLIC ${PROJECT_NAME}_py2cpp)
endif()
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