Skip to content

ifopt-config.cmake error on Windows #73

Open
@johnwason

Description

@johnwason

I am getting the following error when calling 'find_package()' for ifopt:

CMake Error at C:/ws/conda-bld/tesseract-robotics-superpack_1626912746269/_h_env/opt/tesseract_robotics/share/ifopt/cmake/ifopt-config.cmake:47 (get_property):
  IMPORTED_LOCATION not set for imported target "ifopt::ifopt_core".
Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)

The offending line seems to be here:

get_property(ifopt_LIB_CORE TARGET ifopt::ifopt_core PROPERTY LOCATION)

This make be caused by changes to how newer versions of CMake generate the targets files.

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