Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
"Threads::Threads" alias not found. #1502
When configuring SimpleITK against a build tree of ITK I get the following configuration error:
CMake Error at Testing/Unit/CMakeLists.txt:94 (add_executable):
This appears to be coming from the update to google test with this line:
This is causing the following to be generated in
Import target "GTest::GTest" for configuration "Release"
set_property(TARGET GTest::GTest APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
The easiest thing to do would be just to set "gtest_disable_pthreads" to ON. A proper CMake exporting which combine the old variables of ITK-style with the newer target properties used here in Google test would be error prone for myself and would require a CMake guru to do it properly.
I know it's used here for "death tests":
So we are not using that.