Skip to content

Commit d86ccb3

Browse files
only requires Qt5 if interactive control cmake option is ON (#339)
1 parent 69d2b7b commit d86ccb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SoftRobotsConfig.cmake.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ find_package(Sofa.Component.Controller QUIET REQUIRED)
1313
find_package(Sofa.Component.SolidMechanics.Spring QUIET REQUIRED)
1414
find_package(Sofa.Component.Mapping QUIET REQUIRED)
1515
find_package(Sofa.Component.StateContainer QUIET REQUIRED)
16-
find_package(Qt5 QUIET REQUIRED COMPONENTS Network)
16+
17+
if(SOFTROBOTS_INTERACTIVECONTROL)
18+
find_package(Qt5 QUIET REQUIRED COMPONENTS Network)
19+
endif()
1720

1821
if(SOFTROBOTS_HAVE_SOFAPYTHON)
1922
find_package(SofaPython QUIET REQUIRED)

0 commit comments

Comments
 (0)