it's still not really clear to my why this is needed, maybe only in combination with -XD 0.9.19
authorkoda
Sun, 21 Apr 2013 01:36:08 +0200
branch0.9.19
changeset 8932 e095e3023682
parent 8931 ca678bee1a41
child 8933 19be64b0f36e
child 9081 7f04ad2cda54
it's still not really clear to my why this is needed, maybe only in combination with -XD
hedgewars/CMakeLists.txt
--- a/hedgewars/CMakeLists.txt	Sun Apr 21 01:35:30 2013 +0200
+++ b/hedgewars/CMakeLists.txt	Sun Apr 21 01:36:08 2013 +0200
@@ -169,7 +169,7 @@
 if(PNG_FOUND)
     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
-    list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}")
+    list(APPEND pascal_flags "-dPNG_SCREENSHOTS" "-Fl${PNG_LIBRARY_DIR}" "-k-L${PNG_LIBRARY_DIR}")
 endif()