hedgewars/CMakeLists.txt
branchwebgl
changeset 8847 ff7fbab7cd56
parent 8833 c13ebed437cb
parent 8832 4e9728dcebeb
child 9127 e350500c4edb
--- a/hedgewars/CMakeLists.txt	Wed Apr 03 00:17:21 2013 +0400
+++ b/hedgewars/CMakeLists.txt	Thu Apr 04 00:32:57 2013 +0200
@@ -174,8 +174,8 @@
 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")
 if(PNG_FOUND)
     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
-    get_filename_component(PNG_LIB_DIR ${PNG_LIBRARIES} PATH)
-    list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIB_DIR}")
+    get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
+    list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}")
 endif()