--- a/hedgewars/CMakeLists.txt Sat Mar 01 13:59:12 2014 -0500
+++ b/hedgewars/CMakeLists.txt Sat Mar 01 23:37:01 2014 +0400
@@ -212,7 +212,7 @@
add_definitions(-dHWLIBRARY)
set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
- set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS hwengine.pas)
+ set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/hwengine.pas")
add_library(hwengine SHARED hwLibrary.pas)
else()
# no need to change name here because target has same name