diff --git a/deps/PNG/PNG.cmake b/deps/PNG/PNG.cmake index a4f081cc9..3a8d22ae3 100644 --- a/deps/PNG/PNG.cmake +++ b/deps/PNG/PNG.cmake @@ -1,3 +1,8 @@ +set(_prefix_line "") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + set(_prefix_line "-DPNG_PREFIX=prusaslicer_") +endif() + prusaslicer_add_cmake_project(PNG GIT_REPOSITORY https://github.com/glennrp/libpng.git GIT_TAG v1.6.35 @@ -5,7 +10,7 @@ prusaslicer_add_cmake_project(PNG CMAKE_ARGS -DPNG_SHARED=OFF -DPNG_STATIC=ON - -DPNG_PREFIX=prusaslicer_ + ${_prefix_line} -DPNG_TESTS=OFF )