Skip to content

Commit 879a07f

Browse files
author
=
committed
Update system wide include for PNG.
1 parent b881de6 commit 879a07f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ if(WITH_PNG)
363363
find_package(PNG)
364364
if(PNG_FOUND)
365365
set(HAVE_PNG ON)
366-
include_directories(SYSTEM "${PNG_INCLUDE_DIR}")
367366
endif()
368367
endif()
369368

apps/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ if(VTK_FOUND)
117117
target_link_libraries(pcl_openni_octree_compression pcl_common pcl_io pcl_filters pcl_visualization pcl_octree)
118118

119119
if(HAVE_PNG)
120-
PCL_ADD_EXECUTABLE(pcl_openni_organized_compression COMPONENT ${SUBSYS_NAME} SOURCES src/openni_organized_compression.cpp BUNDLE)
121-
target_link_libraries(pcl_openni_organized_compression pcl_common pcl_io pcl_filters pcl_visualization pcl_octree)
120+
PCL_ADD_EXECUTABLE(pcl_openni_organized_compression COMPONENT ${SUBSYS_NAME} SOURCES src/openni_organized_compression.cpp BUNDLE)
121+
target_link_libraries(pcl_openni_organized_compression pcl_common pcl_io pcl_filters pcl_visualization pcl_octree)
122122
endif()
123123

124124
PCL_ADD_EXECUTABLE(pcl_openni_shift_to_depth_conversion COMPONENT ${SUBSYS_NAME} SOURCES src/openni_shift_to_depth_conversion.cpp BUNDLE)

io/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ if(VTK_FOUND)
374374
endif()
375375

376376
if(PNG_FOUND)
377+
target_include_directories("${LIB_NAME}" SYSTEM PRIVATE ${PNG_INCLUDE_DIRS})
377378
target_link_libraries("${LIB_NAME}" ${PNG_LIBRARIES})
378379
endif()
379380

0 commit comments

Comments
 (0)