1. libgd
  2. Untitled project
  3. gd-libgd

Commits

pajoye  committed 850c6ff

- windows may have freetype2.lib

  • Participants
  • Parent commits 9fa6da1
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/cmake/modules/FindFreetype.cmake

View file
   /usr/local/include/freetype2
 )
 
-FIND_LIBRARY(FREETYPE_LIBRARY freetype
+FIND_LIBRARY(FREETYPE_LIBRARY NAMES freetype freetype2
+  PATHS
   /usr/lib64
   /usr/lib
   /usr/local/lib
 )
-
+MESSAGE("FT2 lib found: " ${FREETYPE_LIBRARY})
 IF (FREETYPE_LIBRARY)
   IF (FREETYPE_INCLUDE_DIR_FTHEADER AND FREETYPE_INCLUDE_DIR_FT2BUILD)
     SET( FREETYPE_FOUND "YES" )