Skip to content

Commit

Permalink
Fix Link Library
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
UnaNancyOwen committed Jun 10, 2015
1 parent b60e20d commit d0bad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d0bad01

Please sign in to comment.