ref: 6b34ea64c52ad272608af3bd9f9b7ea5c7ba4631
parent: cf0ee89e93427a69669c34523054d70b4e2701d5
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 1 20:28:44 EDT 2020
Shut up some CMake warnings
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -516,10 +516,10 @@
# Compile it ourselves
message(STATUS "Using local FreeType")
if(FORCE_LOCAL_LIBS)
- set(CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz ON)
- set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON)
- set(CMAKE_DISABLE_FIND_PACKAGE_PNG ON)
- set(CMAKE_DISABLE_FIND_PACKAGE_BZip2 ON)
+ set(CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz ON CACHE INTERNAL "" FORCE)
+ set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON CACHE INTERNAL "" FORCE)
+ set(CMAKE_DISABLE_FIND_PACKAGE_PNG ON CACHE INTERNAL "" FORCE)
+ set(CMAKE_DISABLE_FIND_PACKAGE_BZip2 ON CACHE INTERNAL "" FORCE)
endif()
add_subdirectory("external/freetype" EXCLUDE_FROM_ALL)
target_link_libraries(CSE2 PRIVATE freetype)