You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an experiment, I tried to see if I could add a remote module to ITKIOOMEZarrNGFF, just by adding a file named "IOOMEZarrNGFF.remote.cmake" to ITK's source subdirectory "Modules\Remote", having:
itk_fetch_module(
IOOMEZarrNGFF
"ITK module for IO of images stored in Zarr-backed OME-NGFF file format."
MODULE_COMPLIANCE_LEVEL 3
GIT_REPOSITORY https://github.com/InsightSoftwareConsortium/ITKIOOMEZarrNGFF.git
GIT_TAG 6bb50d206670b2906558ebb47f77ad0e7306a7f0
)
When I do a CMake Generate of my adjusted version of ITK, after having enabled the remote module, it says:
Configuring done (300.6s)
CMake Error: install(EXPORT "ITKTargets" ...) includes target "IOOMEZarrNGFF" which requires target "tensorstore_tensorstore" that is not in any export set.
CMake Error: install(EXPORT "ITKTargets" ...) includes target "IOOMEZarrNGFF" which requires target "tensorstore_all_drivers" that is not in any export set.
Generating done (85.7s)
How could these errors possibly be avoided?
I guess the issue is related to the target_link_libraries(IOOMEZarrNGFF PRIVATE tensorstore::tensorstore tensorstore::all_drivers) call in
tensorstore, this remote module's main dependency, is big and complicated, with a strange build system. Its CMake-based build system is auto-generated from Bazel, which is its source of truth. CMake being second-class citizen within tensorstore has many strange side-effects. It has been long since I dealt with this, so I don't have any immediate suggestions.
For the record, I observed that a local ITKIOOMEZarrNGFF CMake configuration executes the "if(NOT ITK_SOURCE_DIR)" branch, while as remote module, the "else()" branch is executed, from
As an experiment, I tried to see if I could add a remote module to ITKIOOMEZarrNGFF, just by adding a file named "IOOMEZarrNGFF.remote.cmake" to ITK's source subdirectory "Modules\Remote", having:
At https://github.com/N-Dekker/ITK/tree/IOOMEZarrNGFF-remote
When I do a CMake Generate of my adjusted version of ITK, after having enabled the remote module, it says:
How could these errors possibly be avoided?
I guess the issue is related to the
target_link_libraries(IOOMEZarrNGFF PRIVATE tensorstore::tensorstore tensorstore::all_drivers)
call inITKIOOMEZarrNGFF/src/CMakeLists.txt
Line 32 in 6bb50d2
Is there any workaround or possible fix?
The text was updated successfully, but these errors were encountered: