Browse Source

CMake: Fix building with backward compatible render interfaces

Michael Ragazzon 1 year ago
parent
commit
a1d96e2a22
2 changed files with 2 additions and 2 deletions
  1. 1 1
      CMake/DependenciesForBackends.cmake
  2. 1 1
      Samples/basic/CMakeLists.txt

+ 1 - 1
CMake/DependenciesForBackends.cmake

@@ -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

+ 1 - 1
Samples/basic/CMakeLists.txt

@@ -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()