hedgewars/CMakeLists.txt
changeset 10004 eb0b520564bb
parent 9996 d93fb04619ee
child 10008 b8b91c7e0da8
--- a/hedgewars/CMakeLists.txt	Fri Jan 17 16:16:28 2014 +0100
+++ b/hedgewars/CMakeLists.txt	Fri Jan 17 16:31:36 2014 +0100
@@ -149,7 +149,7 @@
     add_flag_append(CMAKE_Pascal_FLAGS "-XLAlua=${lua_output_name}")
 endif()
 
-if(PHYSFS_SYSTEM)
+if(PHYSFS_FOUND AND PHYSFS_SYSTEM)
     get_filename_component(PHYSFS_LIBRARY_DIR ${PHYSFS_LIBRARY} PATH)
     add_flag_append(CMAKE_Pascal_FLAGS "-Fl${PHYSFS_LIBRARY}")
 else()