Skip to content

OpenCVConfig.cmake contains wrong path info #23

Description

@peendebak

After installing the menpo opencv3 package on our system we have not only the python cv2 package, but also the OpenCV headers, OpenCV libs and the cmake files.

We cannot use the cmake files to build our own executables since some of the variables are incorrect. For example in OpenCVConfig.cmake (installed in envs/[ENVNAME]/Library/OpenCVConfig.cmake) we have

  if(OpenCV_STATIC AND EXISTS "${OpenCV_CONFIG_PATH}/${OpenCV_ARCH}/${OpenCV_RUNTIME}/staticlib/OpenCVConfig.cmake")

On our system ${OpenCV_ARCH}/${OpenCV_RUNTIME} expands to x64\vc14, but the conda package installs the libs in Library/lib.

Can we either fix the OpenCVConfig.cmake, or adapt the conda pacakge to install to Library\x64\lib?

In 'OpenCVModules-release.cmakesome of the variables are hard-coded (e.g.x64/vc14' instead of ${OpenCV_ARCH}/${OpenCV_RUNTIME}).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions