hedgewars/CMakeLists.txt
changeset 6916 50243b6ffab5
parent 6915 be298851fc7b
child 6920 b1d0d26d41fa
equal deleted inserted replaced
6915:be298851fc7b 6916:50243b6ffab5
   140     endif()
   140     endif()
   141 else()
   141 else()
   142     message(FATAL_ERROR "No Pascal compiler found!")
   142     message(FATAL_ERROR "No Pascal compiler found!")
   143 endif()
   143 endif()
   144 
   144 
   145 find_package(png)
   145 find_package(PNG)
   146 if(${PNG_LIBRARY})
   146 if(${PNG_FOUND})
   147     set(pascal_compiler_flags_cmn "-dPNG_SCREENSHOTS" ${pascal_compiler_flags_cmn})
   147     set(pascal_compiler_flags_cmn "-dPNG_SCREENSHOTS" ${pascal_compiler_flags_cmn})
   148 else()
   148 else()
   149     message(STATUS "PNG library not found, switching to screenshots in BMP format")
   149     message(STATUS "PNG library not found, switching to screenshots in BMP format")
   150 endif()
   150 endif()
   151 
   151