summaryrefslogtreecommitdiff
blob: ba456a6395db6fdbfd43ba78a04d0c060696ef87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- paraview-2.4.4/GUI/Widgets/CMakeLists.txt	2005-10-20 10:32:11.000000000 -0400
+++ paraview-2.4.4-new/GUI/Widgets/CMakeLists.txt	2006-09-10 19:46:55.000000000 -0400
@@ -397,7 +397,11 @@
     TARGET_LINK_LIBRARIES (KWWidgets vtkParallel)
   ENDIF(VTK_USE_PARALLEL OR VTK_USE_PARALLEL_ISSET)
 ENDIF(VTK_WRAP_TCL)
-TARGET_LINK_LIBRARIES (KWWidgets vtkpng)
+IF(VTK_USE_SYSTEM_PNG)
+  TARGET_LINK_LIBRARIES (KWWidgets png)
+ELSE(VTK_USE_SYSTEM_PNG)
+  TARGET_LINK_LIBRARIES (KWWidgets vtkpng)
+ENDIF(VTK_USE_SYSTEM_PNG)
 
 # We need KWSys