From d0bad014bb2017a010db0dbdc1a633d7500b4b90 Mon Sep 17 00:00:00 2001 From: Tsukasa Sugiura Date: Wed, 10 Jun 2015 18:02:29 +0900 Subject: [PATCH] Fix Link Library Fail build when enable the WITH_PNG option, because libpng required zlib. Resolved this issue by to change the variable PNG_LIBRARIES that including zlib. --- io/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt index f9a7f79cb96..870d91b9d8c 100644 --- a/io/CMakeLists.txt +++ b/io/CMakeLists.txt @@ -333,7 +333,7 @@ if(build) link_directories(${VTK_LINK_DIRECTORIES}) target_link_libraries("${LIB_NAME}" pcl_common pcl_io_ply ${VTK_LIBRARIES} ) if(PNG_FOUND) - target_link_libraries("${LIB_NAME}" ${PNG_LIBRARY}) + target_link_libraries("${LIB_NAME}" ${PNG_LIBRARIES}) endif(PNG_FOUND) if(LIBUSB_1_FOUND)