diff --git a/indra/cmake/PNG.cmake b/indra/cmake/PNG.cmake index 54b2438425b685a32eac2fa86a5db556d0a7f267..cf338ebe5e38c39af28f1e9729e70797dcfa0026 100644 --- a/indra/cmake/PNG.cmake +++ b/indra/cmake/PNG.cmake @@ -16,7 +16,7 @@ else (USESYSTEMLIBS) if (WINDOWS) set_target_libraries(libpng::libpng libpng16) else() - set(PNG_LIBRARIES png16) + set_target_libraries(libpng::libpng png16 ) endif() set_target_include_dirs( libpng::libpng ${LIBS_PREBUILT_DIR}/include/libpng16) endif (USESYSTEMLIBS)