Skip to content

Commit 116191f

Browse files
authored
LibraryConfigurations.cmake: exchanged MATCHES -> STREQUAL in platform choosing if-statements (#5654)
* RGFW also requires RGBA8 images as window icons, as raylib already reports in raylib.h * LibraryConfigurations.cmake: exchanged MATCHES -> STREQUAL in platform choosing if-statements
1 parent a6d5a7f commit 116191f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cmake/LibraryConfigurations.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ endif()
99

1010
set(RAYLIB_DEPENDENCIES "include(CMakeFindDependencyMacro)")
1111

12-
if (${PLATFORM} MATCHES "Desktop")
12+
if (${PLATFORM} STREQUAL "Desktop")
1313
set(PLATFORM_CPP "PLATFORM_DESKTOP")
1414

1515
if (APPLE)
@@ -67,14 +67,14 @@ if (${PLATFORM} MATCHES "Desktop")
6767
endif ()
6868
endif ()
6969

70-
elseif (${PLATFORM} MATCHES "Web")
70+
elseif (${PLATFORM} STREQUAL "Web")
7171
set(PLATFORM_CPP "PLATFORM_WEB")
7272
if(NOT GRAPHICS)
7373
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
7474
endif()
7575
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
7676

77-
elseif (${PLATFORM} MATCHES "Android")
77+
elseif (${PLATFORM} STREQUAL "Android")
7878
set(PLATFORM_CPP "PLATFORM_ANDROID")
7979
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
8080
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
@@ -94,7 +94,7 @@ elseif (${PLATFORM} MATCHES "Android")
9494
set(LIBS_PRIVATE log android EGL GLESv2 OpenSLES atomic c)
9595
set(LIBS_PUBLIC m)
9696

97-
elseif ("${PLATFORM}" MATCHES "DRM")
97+
elseif ("${PLATFORM}" STREQUAL "DRM")
9898
set(PLATFORM_CPP "PLATFORM_DRM")
9999
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
100100

@@ -113,7 +113,7 @@ elseif ("${PLATFORM}" MATCHES "DRM")
113113
set(LIBS_PRIVATE ${GLESV2} ${EGL} ${DRM} ${GBM} atomic pthread dl)
114114
set(LIBS_PUBLIC m)
115115

116-
elseif ("${PLATFORM}" MATCHES "SDL")
116+
elseif ("${PLATFORM}" STREQUAL "SDL")
117117
# First, check if SDL is included as a subdirectory
118118
if(TARGET SDL3::SDL3)
119119
message(STATUS "Using SDL3 from subdirectory")
@@ -147,7 +147,7 @@ elseif ("${PLATFORM}" MATCHES "SDL")
147147
add_compile_definitions(USING_SDL2_PACKAGE)
148148
endif()
149149
endif()
150-
elseif ("${PLATFORM}" MATCHES "RGFW")
150+
elseif ("${PLATFORM}" STREQUAL "RGFW")
151151
set(PLATFORM_CPP "PLATFORM_DESKTOP_RGFW")
152152

153153
if (APPLE)
@@ -168,7 +168,7 @@ elseif ("${PLATFORM}" MATCHES "RGFW")
168168
set(LIBS_PRIVATE ${X11_LIBRARIES} ${OPENGL_LIBRARIES})
169169
endif ()
170170

171-
elseif ("${PLATFORM}" MATCHES "WebRGFW")
171+
elseif ("${PLATFORM}" STREQUAL "WebRGFW")
172172
set(PLATFORM_CPP "PLATFORM_WEB_RGFW")
173173
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
174174
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")

0 commit comments

Comments
 (0)