Shut up some CMake warnings

This commit is contained in:
Clownacy 2020-04-02 00:28:44 +01:00
parent cf0ee89e93
commit 6b34ea64c5

View file

@ -516,10 +516,10 @@ else()
# Compile it ourselves # Compile it ourselves
message(STATUS "Using local FreeType") message(STATUS "Using local FreeType")
if(FORCE_LOCAL_LIBS) if(FORCE_LOCAL_LIBS)
set(CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz ON) set(CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz ON CACHE INTERNAL "" FORCE)
set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON) set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON CACHE INTERNAL "" FORCE)
set(CMAKE_DISABLE_FIND_PACKAGE_PNG ON) set(CMAKE_DISABLE_FIND_PACKAGE_PNG ON CACHE INTERNAL "" FORCE)
set(CMAKE_DISABLE_FIND_PACKAGE_BZip2 ON) set(CMAKE_DISABLE_FIND_PACKAGE_BZip2 ON CACHE INTERNAL "" FORCE)
endif() endif()
add_subdirectory("external/freetype" EXCLUDE_FROM_ALL) add_subdirectory("external/freetype" EXCLUDE_FROM_ALL)
target_link_libraries(CSE2 PRIVATE freetype) target_link_libraries(CSE2 PRIVATE freetype)