Fix "don't know how to make hwengine.pas" error
authorunc0rr
Sat, 01 Mar 2014 23:37:01 +0400
changeset 10168 a2bf14203883
parent 10167 7f2685fff3e2
child 10170 db625d96da73
Fix "don't know how to make hwengine.pas" error
hedgewars/CMakeLists.txt
--- 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