Skip to content

Commit af9663a

Browse files
committed
[cmake] Fix missing Sofa.Testing in SP3 cmake config file.
1 parent 62c28f9 commit af9663a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Plugin/PluginConfig.cmake.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
@PACKAGE_GUARD@
33
@PACKAGE_INIT@
44

5+
set(SP3_BUILD_TEST @SP3_BUILD_TEST@)
6+
57
find_package(pybind11 CONFIG REQUIRED)
68
find_package(SofaFramework REQUIRED)
79
find_package(SofaSimulationGraph REQUIRED)
810

11+
if(SP3_BUILD_TEST)
12+
find_package(Sofa.Testing REQUIRED)
13+
endif()
14+
915
# If we are importing this config file and the target is not yet there this is indicating that
1016
# target is an imported one. So we include it
1117
if(NOT TARGET @PROJECT_NAME@)

0 commit comments

Comments
 (0)