Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL target not found when linking to garch #3310

Open
pablode opened this issue Sep 21, 2024 · 1 comment
Open

OpenGL target not found when linking to garch #3310

pablode opened this issue Sep 21, 2024 · 1 comment

Comments

@pablode
Copy link
Contributor

pablode commented Sep 21, 2024

Description of Issue

When building an application that links to garch or glf, CMake reports:

-- Configuring done
CMake Error at F:/USD-dev/INSTALL/cmake/pxrTargets.cmake:351 (set_target_properties):
  The link interface of target "garch" contains:

    OpenGL::GL

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  F:/USD-dev/INSTALL/pxrConfig.cmake:77 (include)
  CMakeLists.txt:29 (find_package)

This was most likely introduced by #2827.

Basically, CMake expects an OpenGL::GL target, but there is no find_package(OpenGL REQUIRED) in pxrConfig.cmake.

Steps to Reproduce

System Information (OS, Hardware)

Windows 10

Package Versions

USD dev (should also affect v24.08)

Build Flags

none

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants