hedgewars/CMakeLists.txt
changeset 6916 50243b6ffab5
parent 6915 be298851fc7b
child 6920 b1d0d26d41fa
--- a/hedgewars/CMakeLists.txt	Mon Apr 23 04:14:21 2012 +0200
+++ b/hedgewars/CMakeLists.txt	Mon Apr 23 13:22:30 2012 +0000
@@ -142,8 +142,8 @@
     message(FATAL_ERROR "No Pascal compiler found!")
 endif()
 
-find_package(png)
-if(${PNG_LIBRARY})
+find_package(PNG)
+if(${PNG_FOUND})
     set(pascal_compiler_flags_cmn "-dPNG_SCREENSHOTS" ${pascal_compiler_flags_cmn})
 else()
     message(STATUS "PNG library not found, switching to screenshots in BMP format")