FLTK logo

[master] 4a31d49 - CMake: put freetype stuff in include directories for X11 only

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 4a31d49 - CMake: put freetype stuff in include directories for X11 only "ManoloFLTK" 10:47 May 02  
 
commit 4a31d4988b9f747c3b988a5d50ce74b91e20685f
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu May 2 19:43:54 2024 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu May 2 19:43:54 2024 +0200

    CMake: put freetype stuff in include directories for X11 only
    
    This would create these warnings for each source file compiled
      osxcross: warning: possibly dangerous include path specified: '-I /usr/include/freetype2'
      osxcross: info: you can silence this warning via 'OSXCROSS_NO_INCLUDE_PATH_WARNINGS=1' (env)
    when cross-compiling from Linux to macOS.

 CMake/resources.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git CMake/resources.cmake CMake/resources.cmake
index e5d6f8c..ce5ef78 100644
--- CMake/resources.cmake
+++ CMake/resources.cmake
@@ -137,9 +137,9 @@ endif(NOT HAVE_DIRENT_H)
 find_path(FREETYPE_PATH freetype.h PATH_SUFFIXES freetype2)
 find_path(FREETYPE_PATH freetype/freetype.h PATH_SUFFIXES freetype2)
 
-if(FREETYPE_PATH)
+if(FREETYPE_PATH AND FLTK_BACKEND_X11)
   list(APPEND FLTK_BUILD_INCLUDE_DIRECTORIES ${FREETYPE_PATH})
-endif(FREETYPE_PATH)
+endif(FREETYPE_PATH AND FLTK_BACKEND_X11)
 
 mark_as_advanced(FREETYPE_PATH)
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.