Limit the png fix for Linux

temporarily...
This commit is contained in:
tamasmeszaros 2020-10-23 11:10:00 +02:00
parent 9782a584f0
commit 335f04ddf0

7
deps/PNG/PNG.cmake vendored
View File

@ -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 prusaslicer_add_cmake_project(PNG
GIT_REPOSITORY https://github.com/glennrp/libpng.git GIT_REPOSITORY https://github.com/glennrp/libpng.git
GIT_TAG v1.6.35 GIT_TAG v1.6.35
@ -5,7 +10,7 @@ prusaslicer_add_cmake_project(PNG
CMAKE_ARGS CMAKE_ARGS
-DPNG_SHARED=OFF -DPNG_SHARED=OFF
-DPNG_STATIC=ON -DPNG_STATIC=ON
-DPNG_PREFIX=prusaslicer_ ${_prefix_line}
-DPNG_TESTS=OFF -DPNG_TESTS=OFF
) )