case sensitivity + correct variable check
authorvittorio.giovara@gmail.com
Mon, 23 Apr 2012 13:22:30 +0000
changeset 6916 50243b6ffab5
parent 6915 be298851fc7b
child 6917 4889c2b779b4
case sensitivity + correct variable check
hedgewars/CMakeLists.txt
--- 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")