Skip to content

Commit

Permalink
CMake: Fix building with backward compatible render interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed Aug 25, 2024
1 parent 6fa0929 commit a1d96e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMake/DependenciesForBackends.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if(RMLUI_BACKEND MATCHES "^SDL")
endif()

# GLFW
if(RMLUI_BACKEND MATCHES "^GLFW")
if(RMLUI_BACKEND MATCHES "^(BackwardCompatible_)?GLFW")
find_package("glfw3" "3.3")

# Instead of relying on the <package_name>_FOUND variable, we check directly for the target
Expand Down
2 changes: 1 addition & 1 deletion Samples/basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ if(RMLUI_FONT_ENGINE_ENABLED)
if(RMLUI_BACKEND MATCHES "^Win32")
add_subdirectory("ime")
else()
message(STATUS "IME sample disabled due to RMLUI_BACKEND not being prefixed by Win32")
message(STATUS "IME sample disabled - only available with Win32 backends, see RMLUI_BACKEND")
endif()
endif()

0 comments on commit a1d96e2

Please sign in to comment.