Commit f932de74 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

BUG: fix MacOS Glew detection

parent 437ab343
Pipeline #8624 passed with stages
in 191 minutes and 4 seconds
......@@ -22,7 +22,11 @@ find_package(GLEW REQUIRED)
# FIX: glew-config.cmake import GLEW::GLEW target but does not necessarily set GLEW_LIBRARY
if(NOT GLEW_LIBRARY)
get_target_property(GLEW_LIBRARY GLEW::GLEW IMPORTED_IMPLIB_RELEASE)
if(WIN32)
get_target_property(GLEW_LIBRARY GLEW::GLEW IMPORTED_IMPLIB_RELEASE)
else()
get_target_property(GLEW_LIBRARY GLEW::GLEW IMPORTED_LOCATION_RELEASE)
endif()
endif()
mark_as_advanced(GLEW_INCLUDE_DIR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment