diff --git a/Modules/ThirdParty/Glew/otb-module-init.cmake b/Modules/ThirdParty/Glew/otb-module-init.cmake index 941796ddbcf119e181f72a33967e1970879c999e..0116eaa3594c3669a20d17ba6f1f8afbe3a7b921 100644 --- a/Modules/ThirdParty/Glew/otb-module-init.cmake +++ b/Modules/ThirdParty/Glew/otb-module-init.cmake @@ -20,6 +20,11 @@ find_package(GLEW REQUIRED) +# FIX: glew-config.cmake import GLEW::GLEW taget but does not necessarily set GLEW_LIBRARY +if(NOT GLEW_LIBRARY) + get_target_property(GLEW_LIBRARY GLEW::GLEW IMPORTED_LOCATION_RELEASE) +endif() + mark_as_advanced(GLEW_INCLUDE_DIR) mark_as_advanced(GLEW_LIBRARY)