InsightSoftwareConsortium / InsightSoftwareConsortium/ITKIOOMEZarrNGFF

Experimental "remote module" CMake Error: install includes target which requires tensorstore

Open
#66 2 comments 0 reactions 1 assignee Claimed by @thewtex View on GitHub
Dominant language
C++
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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
)
```
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:

> 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 https://github.com/InsightSoftwareConsortium/ITKIOOMEZarrNGFF/blob/6bb50d206670b2906558ebb47f77ad0e7306a7f0/src/CMakeLists.txt#L32

Is there any workaround or possible fix?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.