Fix GLEW system lib linking on macOS

Only GLEW::GLEW is provided, GLEW_LIBRARIES is empty by default
This commit is contained in:
def 2021-12-18 00:36:33 +01:00
parent b4374b28f1
commit a8873b3af7

View file

@ -5,6 +5,9 @@ if(NOT PREFER_BUNDLED_LIBS)
if(GLEW_FOUND)
set(GLEW_BUNDLED OFF)
set(GLEW_DEP)
if(NOT GLEW_LIBRARIES)
set(GLEW_LIBRARIES GLEW::GLEW)
endif()
endif()
endif()