hedgewars/CMakeLists.txt
branchphysfslayer
changeset 8528 ffd71e99a4f0
parent 8518 24d2bdc6deff
child 8611 90f445317e8a
--- a/hedgewars/CMakeLists.txt	Fri Feb 22 06:38:46 2013 +0100
+++ b/hedgewars/CMakeLists.txt	Fri Feb 22 06:39:16 2013 +0100
@@ -250,8 +250,12 @@
     add_dependencies(hwengine lua)
 endif()
 
-# compile physfs before engine
-add_dependencies(hwengine physfs)
+# same for physfs
+if(NOT PHYSFS_FOUND)
+    add_dependencies(hwengine physfs)
+endif()
+
+add_dependencies(hwengine physlayer)
 
 #when ffmpeg/libav is found we need to compile it before engine
 #TODO: convert avwrapper to .pas unit so we can skip this step