Skip to content

[cmake][X11] Add x11 libraries for raylib as glfw make private#5625

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
maiconpintoabreu:fix_x11_flag_cmake
Mar 5, 2026
Merged

[cmake][X11] Add x11 libraries for raylib as glfw make private#5625
raysan5 merged 1 commit intoraysan5:masterfrom
maiconpintoabreu:fix_x11_flag_cmake

Conversation

@maiconpintoabreu
Copy link
Contributor

Initial log: INFO: PLATFORM: DESKTOP (GLFW - X11): Initialized successfully
Quick Check

#if defined(_GLFW_X11)
    TraceLog(LOG_INFO, "BACKEND: X11");
#elif defined(_GLFW_WAYLAND)
    TraceLog(LOG_INFO, "BACKEND: Wayland");
#else
    TraceLog(LOG_WARNING, "BACKEND: Unknown");
#endif
#if defined(__linux__)
    TRACELOG(LOG_WARNING, "On LINUX");
#endif

CMAKE Result

WARNING: BACKEND: Unknown
WARNING: On LINUX

Make Result

INFO: BACKEND: X11
WARNING: On LINUX

The issue is because on Cmake the _GLFW_X11 is defined as PRIVATE and not readeable outside of the glfw library

@raysan5 raysan5 merged commit 3e926d6 into raysan5:master Mar 5, 2026
16 checks passed
@raysan5
Copy link
Owner

raysan5 commented Mar 5, 2026

@maiconpintoabreu thanks for the review!

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