Skip to content
  • Kohányi Róbert's avatar
    FindGLUT: Find debug/release variants on Windows · 0da645d4
    Kohányi Róbert authored and Brad King's avatar Brad King committed
    * Separate find_library calls to find Release and Debug libs.
    * Using select_library_configurations to properly populate required
      variables (similar to FindZLIB).
    * Setting Release and Debug specific properties
      (IMPORTED_CONFIGURATIONS_<CONFIG> and IMPORTED_LOCATION_<CONFIG>).
    * Falling back to setting just IMPORTED_LOCATION if
      GLUT_glut_LIBRARY_RELEASE or GLUT_glut_LIBRARY_DEBUG are not defined.
    
    This enables proper linking on Windows.
    
    Fixes: #17037
    0da645d4