summaryrefslogtreecommitdiff
path: root/indra/cmake/PNG.cmake
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2011-03-01 13:13:05 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2011-03-01 13:13:05 -0800
commitc5aaefe37f9d7e894076dae26245a3d87f74d0ff (patch)
tree0b10c36bccca661792b7a252ff4094c53e365fe2 /indra/cmake/PNG.cmake
parenta7e2f1eafd303dad844c36ec77bb6a98fd6ee38c (diff)
fix some mac build problems with library name changes with new packaages.
Diffstat (limited to 'indra/cmake/PNG.cmake')
-rw-r--r--indra/cmake/PNG.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/cmake/PNG.cmake b/indra/cmake/PNG.cmake
index 33fc3e5bac..86b7267494 100644
--- a/indra/cmake/PNG.cmake
+++ b/indra/cmake/PNG.cmake
@@ -8,6 +8,11 @@ if (STANDALONE)
include(FindPNG)
else (STANDALONE)
use_prebuilt_binary(libpng)
- set(PNG_LIBRARIES libpng15)
- set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
+ if (WINDOWS)
+ set(PNG_LIBRARIES libpng15)
+ set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
+ else()
+ set(PNG_LIBRARIES png12)
+ set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng12)
+ endif()
endif (STANDALONE)