From a779084f5303f885e4938dc59cfc4ef4341cae99 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 30 Sep 2024 11:27:19 -0600 Subject: [PATCH] Rely on imported Freetype target to handle include paths --- src/SFML/Graphics/CMakeLists.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/SFML/Graphics/CMakeLists.txt b/src/SFML/Graphics/CMakeLists.txt index 1e77eec76..6ebcf4f2e 100644 --- a/src/SFML/Graphics/CMakeLists.txt +++ b/src/SFML/Graphics/CMakeLists.txt @@ -97,18 +97,6 @@ target_include_directories(sfml-graphics SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/e # glad sources target_include_directories(sfml-graphics SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/extlibs/headers/glad/include") -# let CMake know about our additional graphics libraries paths -if(SFML_OS_WINDOWS) - list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2") -elseif(SFML_OS_MACOS) - list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2") - list(APPEND CMAKE_LIBRARY_PATH "${PROJECT_SOURCE_DIR}/extlibs/libs-macos/Frameworks") -elseif(SFML_OS_IOS) - list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2") -elseif(SFML_OS_ANDROID) - list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2") -endif() - # find external libraries if(SFML_OS_ANDROID) target_link_libraries(sfml-graphics PRIVATE z)