# HG changeset patch # User unc0rr # Date 1371708605 -14400 # Node ID 6f94d6434f949163f583f1d98c828774234bed1d # Parent aa4b84ab0a77c60c89e7893e3b4edab6ee1e0a62 Fix engine build when png lib isn't available diff -r aa4b84ab0a77 -r 6f94d6434f94 hedgewars/CMakeLists.txt --- a/hedgewars/CMakeLists.txt Thu Jun 20 00:28:44 2013 +0400 +++ b/hedgewars/CMakeLists.txt Thu Jun 20 10:10:05 2013 +0400 @@ -18,7 +18,6 @@ uFloat.pas uConsts.pas LuaPas.pas - PNGh.pas uTypes.pas uUtils.pas uVariables.pas @@ -140,6 +139,7 @@ find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP") if(PNG_FOUND) + list(APPEND engine_sources PNGh.pas) list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH) add_flag_append(CMAKE_Pascal_FLAGS -Fl${PNG_LIBRARY_DIR})