Commit 6cb662b6 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN Committed by Julien Osman
Browse files

BUG: fix MacOS Glew detection

parent d7216fef
Pipeline #10510 passed with stage
in 2 minutes
......@@ -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)
......
Supports Markdown
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