CMakeLists: Don't dump libpng's includes into the top-level directory

Instead, add the includes to the target, which only libraries that link it in can actually see.
This commit is contained in:
Lioncash
2018-04-11 17:30:15 -04:00
parent 0bfeb37a1f
commit 6a637cfc22
2 changed files with 11 additions and 5 deletions

View File

@ -599,7 +599,6 @@ if (PNG_FOUND)
else()
message(STATUS "Using static libpng from Externals")
add_subdirectory(Externals/libpng)
include_directories(Externals/libpng)
set(PNG png)
endif()