Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 2, 2025

Fixes a bug introduced in #23705.

@sbc100 sbc100 requested review from brendandahl and kripken April 2, 2025 16:36
add_executable(test_prog test.c)

find_package(OpenGL REQUIRED)
find_package(OpenGL REQUIRED)
Copy link
Member

@kripken kripken Apr 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need these duplicate lines here and below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to test that its safe to find the package more than once.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, maybe add a comment then. Otherwise the test code looks like it might be a copy-paste error I think.

add_executable(test_prog test.c)

find_package(OpenGL REQUIRED)
find_package(OpenGL REQUIRED)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, maybe add a comment then. Otherwise the test code looks like it might be a copy-paste error I think.

@sbc100 sbc100 enabled auto-merge (squash) April 2, 2025 18:54
@sbc100 sbc100 merged commit 9dbd397 into emscripten-core:main Apr 2, 2025
28 checks passed
@sbc100 sbc100 deleted the fix_FindOpenGL branch April 2, 2025 19:31
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

Successfully merging this pull request may close these issues.

2 participants