hedgewars/CMakeLists.txt
branchwebgl
changeset 9127 e350500c4edb
parent 8847 ff7fbab7cd56
parent 8932 e095e3023682
child 9130 4f4b71da3559
equal deleted inserted replaced
8860:bde641cf53c8 9127:e350500c4edb
   173 
   173 
   174 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")
   174 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")
   175 if(PNG_FOUND)
   175 if(PNG_FOUND)
   176     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
   176     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
   177     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
   177     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
   178     list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}")
   178     list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}" "-k-L${PNG_LIBRARY_DIR}")
   179 endif()
   179 endif()
   180 
   180 
   181 
   181 
   182 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   182 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   183 if(FREEPASCAL_VERSION VERSION_LESS "2.6")
   183 if(FREEPASCAL_VERSION VERSION_LESS "2.6")