Fix CMake (Again)

This commit is contained in:
TheBrokenRail 2023-08-05 01:42:47 -04:00
parent 7ecc6cb00b
commit 1dd0526197

View File

@ -10,7 +10,8 @@ elseif(MCPI_USE_GLES1_COMPATIBILITY_LAYER)
set(GLES_COMPATIBILITY_LAYER_USE_SDL FALSE CACHE BOOL "" FORCE)
set(GLES_COMPATIBILITY_LAYER_DEPENDENCY glfw CACHE STRING "" FORCE)
add_subdirectory(dependencies/gles-compatibility-layer)
add_library(GLESv1_CM ALIAS gles-compatibility-layer)
add_library(GLESv1_CM INTERFACE)
target_link_libraries(GLESv1_CM INTERFACE gles-compatibility-layer)
else()
# Passthrough To glfwGetProcAddress()
add_library(GLESv1_CM OBJECT src/passthrough.c)