hedgewars/CMakeLists.txt
branch0.9.19
changeset 8932 e095e3023682
parent 8832 4e9728dcebeb
child 9127 e350500c4edb
child 9151 1d2df388fcc6
equal deleted inserted replaced
8931:ca678bee1a41 8932:e095e3023682
   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_LIBRARIES 1) #removing the zlib library path
   170     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
   171     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
   171     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
   172     list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}")
   172     list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}" "-k-L${PNG_LIBRARY_DIR}")
   173 endif()
   173 endif()
   174 
   174 
   175 
   175 
   176 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   176 #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")
   177 if(FREEPASCAL_VERSION VERSION_LESS "2.6")