Skip to content

osgDB hardcodes path to build machine #939

Open
@skelly-energid

Description

@skelly-energid

The FileUtils.cpp function appendInstallationLibraryFilePaths returns OSG_DEFAULT_LIBRARY_PATH, which is set in cmake:

ADD_DEFINITIONS(-DOSG_DEFAULT_LIBRARY_PATH=\"${CMAKE_INSTALL_PREFIX}/${OSG_INSTALL_LIBDIR}/${OSG_PLUGINS}\")

The ${CMAKE_INSTALL_PREFIX} is hardcoded, meaning that the path on the build machine is searched for plugins. That is inappropriate. Instead, osgDB should search relative to the osgDB library itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions