diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-05-03 08:33:56 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-05-03 08:33:56 +0200 |
| commit | 6238ede94d280dd41414ccec916f74f48ae46bd6 (patch) | |
| tree | c011117b94294900a62e6df0e5102c9c0a441cc3 /CMake | |
| parent | 132e7d4e32836bba9d840c177baac02b7e441a40 (diff) | |
CMake: don't put freetype stuff in include directories for macOS
This removes 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.
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/resources.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/resources.cmake b/CMake/resources.cmake index e5d6f8c9f..3fd8205f1 100644 --- a/CMake/resources.cmake +++ b/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 ((NOT APPLE) OR FLTK_BACKEND_X11)) list(APPEND FLTK_BUILD_INCLUDE_DIRECTORIES ${FREETYPE_PATH}) -endif(FREETYPE_PATH) +endif(FREETYPE_PATH AND ((NOT APPLE) OR FLTK_BACKEND_X11)) mark_as_advanced(FREETYPE_PATH) |
