# HG changeset patch # User unc0rr # Date 1393702621 -14400 # Node ID a2bf14203883dd2660250f304b0318456059082c # Parent 7f2685fff3e2f7a17052f477fd7a9fb7fecd7d34 Fix "don't know how to make hwengine.pas" error diff -r 7f2685fff3e2 -r a2bf14203883 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