changeset 8688 | 88a6114a318c |
parent 8686 | d303da4568b7 |
child 8697 | 9624836094de |
--- a/hedgewars/CMakeLists.txt Thu Mar 07 10:16:21 2013 +0100 +++ b/hedgewars/CMakeLists.txt Thu Mar 07 11:55:00 2013 +0100 @@ -165,11 +165,9 @@ list(APPEND pascal_flags "-FD${compiler_dir}") endif(APPLE) -if(NOT NOPNG) - find_package_or_disable(PNG NOPNG) +find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP") +if(PNG_FOUND) list(APPEND pascal_flags "-dPNG_SCREENSHOTS") -else() - message(STATUS "PNG screenshots disabled, using BMP format") endif()