diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 2d5b0f6d0..28e4c450c 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -84,6 +84,10 @@ if(NOT USE_SHARED_FREETYPE) endif() add_subdirectory(freetype2) + + if(NOT USE_SHARED_LIBPNG) + add_dependencies(freetype png_static) + endif() endif() add_subdirectory(simpleini)