# HG changeset patch
# User unc0rr
# Date 1352317494 -14400
# Node ID 2f4fa2a06e4ffa1c3446ed3f9638fe7568a7c8a9
# Parent  9910f303f5b63ae87d71c29fcbb076acbdfabb09
Build physfs lib before engine

diff -r 9910f303f5b6 -r 2f4fa2a06e4f hedgewars/CMakeLists.txt
--- a/hedgewars/CMakeLists.txt	Mon Nov 05 23:10:54 2012 +0400
+++ b/hedgewars/CMakeLists.txt	Wed Nov 07 23:44:54 2012 +0400
@@ -264,6 +264,8 @@
     add_dependencies(${engine_output_name} lua)
 endif()
 
+add_dependencies(${engine_output_name} physfs)
+
 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
 if((fpc_version LESS "020600") AND (NOVIDEOREC OR NOT ${FFMPEG_FOUND}))
     add_dependencies(${engine_output_name} ENGINECLEAN)