mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Build libpng as part of deps on Linux
- We've found counter case where the system provided one is missing or is too old.
This commit is contained in:
9
deps/deps-linux.cmake
vendored
9
deps/deps-linux.cmake
vendored
@@ -3,10 +3,11 @@ set(DEP_CMAKE_OPTS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
|
||||
|
||||
include("deps-unix-common.cmake")
|
||||
|
||||
find_package(PNG QUIET)
|
||||
if (NOT PNG_FOUND)
|
||||
message(WARNING "No PNG dev package found in system, building static library. You should install the system package.")
|
||||
endif ()
|
||||
# Some Linuxes may have very old libpng, so it's best to bundle it instead of relying on the system version.
|
||||
# find_package(PNG QUIET)
|
||||
# if (NOT PNG_FOUND)
|
||||
# message(WARNING "No PNG dev package found in system, building static library. You should install the system package.")
|
||||
# endif ()
|
||||
|
||||
#TODO UDEV
|
||||
|
||||
|
||||
Reference in New Issue
Block a user