xsimd icon indicating copy to clipboard operation
xsimd copied to clipboard

Not found with conan + cmake_paths

Open 0Xellos opened this issue 4 years ago • 4 comments

CMake gives the standard "package not found" error

  By not providing "Findxsimd.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "xsimd", but
  CMake did not find one.

  Could not find a package configuration file provided by "xsimd" with any of
  the following names:

    xsimdConfig.cmake
    xsimd-config.cmake

  Add the installation prefix of "xsimd" to CMAKE_PREFIX_PATH or set
  "xsimd_DIR" to a directory containing one of the above files.  If "xsimd"
  provides a separate development package or SDK, be sure it has been
  installed.

See minimum failing example: test.zip.

To make it work, we're using the following patches in a custom conan package: patch.zip. I'm not sure if that's the "right" way to fix and it's only a sidenote in other work, but if we could use xsimd from conancenter directly that'd be good long-term.

0Xellos avatar Aug 18 '21 07:08 0Xellos

Which version of xsimd are you using?

SylvainCorlay avatar Aug 18 '21 08:08 SylvainCorlay

We're using 7.4.0 in our patched builds, but it isn't in conancenter now so the example has 7.5.0.

0Xellos avatar Aug 18 '21 20:08 0Xellos

Thanks, I just wanted to make sure that you are not using master.

This is surprising because xsimd does provide a xsimdConfig.cmake . However, we (xtensor and xsimd maintainers) don't maintain the conan packages, but only the conda ones, and it is possible that something is wrong with how this has been packaged for conan.

SylvainCorlay avatar Aug 18 '21 20:08 SylvainCorlay

Yeah, that should be the case. Perhaps specifically for the cmake_paths generator.

Where's the right place to put the issue then?

0Xellos avatar Aug 19 '21 11:08 0Xellos