hedgewars/CMakeLists.txt
changeset 8688 88a6114a318c
parent 8686 d303da4568b7
child 8697 9624836094de
equal deleted inserted replaced
8687:5b6ad1bd6ace 8688:88a6114a318c
   163     #when you have multiple ld installation make sure you get the one bundled with the compiler
   163     #when you have multiple ld installation make sure you get the one bundled with the compiler
   164     get_filename_component(compiler_dir ${CMAKE_C_COMPILER} PATH)
   164     get_filename_component(compiler_dir ${CMAKE_C_COMPILER} PATH)
   165     list(APPEND pascal_flags "-FD${compiler_dir}")
   165     list(APPEND pascal_flags "-FD${compiler_dir}")
   166 endif(APPLE)
   166 endif(APPLE)
   167 
   167 
   168 if(NOT NOPNG)
   168 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")
   169     find_package_or_disable(PNG NOPNG)
   169 if(PNG_FOUND)
   170     list(APPEND pascal_flags "-dPNG_SCREENSHOTS")
   170     list(APPEND pascal_flags "-dPNG_SCREENSHOTS")
   171 else()
       
   172     message(STATUS "PNG screenshots disabled, using BMP format")
       
   173 endif()
   171 endif()
   174 
   172 
   175 
   173 
   176 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   174 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   177 if(FREEPASCAL_VERSION VERSION_LESS "2.6")
   175 if(FREEPASCAL_VERSION VERSION_LESS "2.6")