# HG changeset patch # User vittorio.giovara@gmail.com # Date 1335187350 0 # Node ID 50243b6ffab5ad039bc33c26a1349774bd7c3688 # Parent be298851fc7b1c1632c22c99af5a8798b5b521f8 case sensitivity + correct variable check diff -r be298851fc7b -r 50243b6ffab5 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")