equal
deleted
inserted
replaced
172 endif(APPLE) |
172 endif(APPLE) |
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_LIB_DIR ${PNG_LIBRARIES} PATH) |
177 get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH) |
178 list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIB_DIR}") |
178 list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${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") |