hedgewars/CMakeLists.txt
changeset 9743 6e505ea936ad
parent 9741 cf086f49516b
child 9798 f2b18754742f
child 9883 d6d3be73d427
--- a/hedgewars/CMakeLists.txt	Tue Dec 03 12:10:51 2013 -0500
+++ b/hedgewars/CMakeLists.txt	Tue Dec 03 18:09:54 2013 +0100
@@ -168,10 +168,9 @@
 
 
 # make source files objects depend on their predecessors in list
+set(sourcefiles_sofar "${CMAKE_CURRENT_SOURCE_DIR}/options.inc" "${CMAKE_CURRENT_BINARY_DIR}/config.inc")
 foreach(loop_var ${engine_sources})
-    if (sourcefiles_sofar)
-        SET_SOURCE_FILES_PROPERTIES(${loop_var} PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
-    endif()
+    SET_SOURCE_FILES_PROPERTIES(${loop_var} PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
     list(APPEND sourcefiles_sofar "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}")
 endforeach(loop_var)