Skip to content

dpctl should provide cmake config files and install them  #851

Open

Description

@diptorupd

The FindDpctl.cmake is not installed as part of the conda package nor do we currently provide a DpctlConfig.cmake file. The result is that dpctl cannot be found by external cmake projects.

CMake Error at CMakeLists.txt:7 (find_package):
By not providing "FindDpctl.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Dpctl", but
CMake did not find one.

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

DpctlConfig.cmake
dpctl-config.cmake

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

Activity

  1. oleksandr-pavlyk commented on Jun 24, 2022

    @oleksandr-pavlyk
    Contributor

    I think this would be closed by #853.

    With #853 all one needs to do python setup.py develop -- -DPDCTL_MODULE_PATH=$(python -m dpctl --cmakedir) to build external package which uses dpctl via find_package(dpctl) in their CMakeLists.txt.

  2. oleksandr-pavlyk commented on Sep 15, 2023

    @oleksandr-pavlyk
    Contributor

    No, we should create dpctlConfig.cmake and make sure it installed in $PREFIX/share/cmake/dpctl/dpctlConfig.cmake.

    Thus would allow find_package(Dpctl REQUIRED) to work without setting any additional module path variables.

  3. added
    enhancement
    cmake
    on Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cmakeenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions