hedgewars/CMakeLists.txt
changeset 8830 343d3f0d6a86
parent 8702 a28966180a29
child 8832 4e9728dcebeb
child 8833 c13ebed437cb
equal deleted inserted replaced
8828:4ae5233abe76 8830:343d3f0d6a86
   166 endif(APPLE)
   166 endif(APPLE)
   167 
   167 
   168 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")
   168 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")
   169 if(PNG_FOUND)
   169 if(PNG_FOUND)
   170     list(REMOVE_AT PNG_INCLUDE_DIR 1) #removing the zlib include path
   170     list(REMOVE_AT PNG_INCLUDE_DIR 1) #removing the zlib include path
   171     list(APPEND pascal_flags "-dPNG_SCREENSHOTS -Fl${PNG_INCLUDE_DIR}")
   171     list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_INCLUDE_DIR}")
   172 endif()
   172 endif()
   173 
   173 
   174 
   174 
   175 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   175 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   176 if(FREEPASCAL_VERSION VERSION_LESS "2.6")
   176 if(FREEPASCAL_VERSION VERSION_LESS "2.6")