hedgewars/CMakeLists.txt
changeset 10168 a2bf14203883
parent 10160 4608f10ae65f
child 10174 710ffaae7d59
--- 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