Skip to content

Commit 3f096a7

Browse files
committed
Quick fix Threads::Threads issue
1 parent 5c3dafb commit 3f096a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ if (SP3_COMPILED_AS_SOFA_SUBPROJECT)
3939
else()
4040
option(SP3_BUILD_TEST "Compile the automatic tests for SofaPython3, along with the gtest library." ON)
4141
endif()
42+
if(SP3_BUILD_TEST)
43+
# TODO: remove this when SOFA's GTest handles threads correctly
44+
find_package(Threads REQUIRED)
45+
endif()
4246

4347
find_package(SofaExporter QUIET)
4448
CMAKE_DEPENDENT_OPTION(SP3_WITH_SOFAEXPORTER "Bind the SOFA exporter component." ON "SofaExporter_FOUND" OFF)

0 commit comments

Comments
 (0)