Skip to content

Commit 40a0f3a

Browse files
committed
bench and examples CMakeLists : do not try to compile se2-car.cpp and talos-walk.cpp without Pinocchio support
1 parent 71ba6a3 commit 40a0f3a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ endif()
500500
if(
501501
NOT BUILD_STANDALONE_PYTHON_INTERFACE
502502
AND (BUILD_EXAMPLES OR BUILD_BENCHMARKS)
503+
AND BUILD_WITH_PINOCCHIO_SUPPORT
503504
)
504505
add_library(
505506
talos_walk_utils

bench/CMakeLists.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ function(create_bench exfile)
2121
target_include_directories(${_exname} PRIVATE ../examples)
2222
endfunction()
2323

24-
function(create_gar_bench exfile)
25-
create_bench(${exfile} DEPENDENCIES gar_test_utils)
26-
endfunction()
27-
2824
create_bench(lqr.cpp)
29-
create_bench(se2-car.cpp)
30-
create_bench(talos-walk.cpp DEPENDENCIES talos_walk_utils)
25+
create_bench(gar-riccati.cpp DEPENDENCIES gar_test_utils)
26+
if(BUILD_WITH_PINOCCHIO_SUPPORT)
27+
create_bench(se2-car.cpp)
28+
create_bench(talos-walk.cpp DEPENDENCIES talos_walk_utils)
29+
endif()
3130
if(BUILD_CROCODDYL_COMPAT)
3231
create_bench(croc-talos-arm.cpp CROC)
3332
endif()
34-
35-
create_gar_bench(gar-riccati.cpp)

examples/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ endfunction()
2323

2424
if(NOT BUILD_STANDALONE_PYTHON_INTERFACE)
2525
create_example(clqr.cpp)
26-
create_example(talos-walk.cpp DEPENDENCIES talos_walk_utils)
27-
create_example(se2-car.cpp)
26+
if(BUILD_WITH_PINOCCHIO_SUPPORT)
27+
create_example(talos-walk.cpp DEPENDENCIES talos_walk_utils)
28+
create_example(se2-car.cpp)
29+
endif()
2830

2931
if(BUILD_CROCODDYL_COMPAT)
3032
ADD_PROJECT_PRIVATE_DEPENDENCY(example-robot-data 4.0.9 REQUIRED)

0 commit comments

Comments
 (0)