dpnp icon indicating copy to clipboard operation
dpnp copied to clipboard

Build: Could NOT find DPL (missing: DPL_INCLUDE_DIR)

Open npolina4 opened this issue 2 years ago • 0 comments

I export DPL_ROOT like in README.md file.

export DPL_ROOT=$(pwd)/oneDPL/include

I try to build and see:

CMake Warning (dev) at CMakeLists.txt:294 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Environment variable DPL_ROOT is set to:

    /localdisk/intel/oneapi/dpl/2021.7.1

  For compatibility, CMake is ignoring the variable.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /localdisk/work/npolina/.conda/envs/test1/lib/python3.9/site-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find DPL (missing: DPL_INCLUDE_DIR)
Call Stack (most recent call first):
  /localdisk/work/npolina/.conda/envs/test1/lib/python3.9/site-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindDPL.cmake:48 (find_package_handle_standard_args)
  CMakeLists.txt:294 (find_package)

I open FindDPL.cmake and see:

# The following variables are optionally searched for defaults
#  DPLROOT:         Environment variable to specify custom search place

I export DPLROOT and now its work

npolina4 avatar Dec 03 '22 04:12 npolina4