diff --git a/src/other/ext/png.cmake b/src/other/ext/png.cmake index 9d52120929..2885101b43 100644 --- a/src/other/ext/png.cmake +++ b/src/other/ext/png.cmake @@ -89,6 +89,7 @@ if (BRLCAD_PNG_BUILD) -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=${CMAKE_INSTALL_RPATH_USE_LINK_PATH} -DCMAKE_SKIP_BUILD_RPATH=${CMAKE_SKIP_BUILD_RPATH} -DPNG_LIB_NAME=${PNG_LIB_NAME} + -DPNG_NO_DEBUG_POSTFIX=ON -DPNG_PREFIX=brl_ -DPNG_STATIC=${BUILD_STATIC_LIBS} -DPNG_TESTS=OFF diff --git a/src/other/ext/png/CMakeLists.txt b/src/other/ext/png/CMakeLists.txt index 2db77f6526..8fbe2223fb 100644 --- a/src/other/ext/png/CMakeLists.txt +++ b/src/other/ext/png/CMakeLists.txt @@ -224,7 +224,9 @@ endif(PNG_HARDWARE_OPTIMIZATIONS) set(PNG_LIB_NAME png${PNGLIB_MAJOR}${PNGLIB_MINOR}) # Distinguish between debug and release builds. -set(CMAKE_DEBUG_POSTFIX "d") +if(NOT PNG_NO_DEBUG_POSTFIX) + set(CMAKE_DEBUG_POSTFIX "d") +endif(NOT PNG_NO_DEBUG_POSTFIX) include(CheckCSourceCompiles) option(ld-version-script "Enable linker version script" ON)