summaryrefslogtreecommitdiff
path: root/indra/cmake/PNG.cmake
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-03-21 09:31:49 -0400
committerOz Linden <oz@lindenlab.com>2011-03-21 09:31:49 -0400
commit9d2f08427b6f3643f642e3e599a19a2dce3101e7 (patch)
tree529ff1ed1ac9961ec86f76ec51a6e92e931a64f9 /indra/cmake/PNG.cmake
parentdf63c6931e81c034887611711095e3134b9a7318 (diff)
parent819c7f0dd21b8b819cdc70686682e31cadf155d6 (diff)
pull updates to the start of 2.6.2 from viewer-development
Diffstat (limited to 'indra/cmake/PNG.cmake')
-rw-r--r--indra/cmake/PNG.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/cmake/PNG.cmake b/indra/cmake/PNG.cmake
index f6522d9e2f..913c575672 100644
--- a/indra/cmake/PNG.cmake
+++ b/indra/cmake/PNG.cmake
@@ -8,6 +8,14 @@ if (STANDALONE)
include(FindPNG)
else (STANDALONE)
use_prebuilt_binary(libpng)
- set(PNG_LIBRARIES png12)
- set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng12)
+ if (WINDOWS)
+ set(PNG_LIBRARIES libpng15)
+ set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
+ elseif(DARWIN)
+ set(PNG_LIBRARIES png15)
+ set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
+ else()
+ set(PNG_LIBRARIES png15)
+ set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
+ endif()
endif (STANDALONE)