diff options
| author | jj | 2012-09-29 12:12:56 +0200 |
|---|---|---|
| committer | jj | 2012-09-29 12:13:04 +0200 |
| commit | 6fd002382f08ee1f39976865e143104d6249f0fd (patch) | |
| tree | 2d433c3aa603603e7f4f7e5e8e307fea32bdae2a /plugins/ruby/CMakeLists.txt | |
| parent | cb2acc169c3dd2ddfc4af36c4829c6f50561c40b (diff) | |
| download | dfhack-6fd002382f08ee1f39976865e143104d6249f0fd.tar.gz dfhack-6fd002382f08ee1f39976865e143104d6249f0fd.tar.bz2 dfhack-6fd002382f08ee1f39976865e143104d6249f0fd.tar.xz | |
ruby: fix cmake dependency on codegen.out.xml
Diffstat (limited to 'plugins/ruby/CMakeLists.txt')
| -rw-r--r-- | plugins/ruby/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ruby/CMakeLists.txt b/plugins/ruby/CMakeLists.txt index e10ee38b..b8c90d13 100644 --- a/plugins/ruby/CMakeLists.txt +++ b/plugins/ruby/CMakeLists.txt @@ -20,7 +20,9 @@ ENDIF(DL_RUBY AND NOT APPLE) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ruby-autogen.rb COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/codegen.pl ${dfhack_SOURCE_DIR}/library/include/df/codegen.out.xml ${CMAKE_CURRENT_BINARY_DIR}/ruby-autogen.rb - DEPENDS ${dfhack_SOURCE_DIR}/library/include/df/codegen.out.xml ${CMAKE_CURRENT_SOURCE_DIR}/codegen.pl + # cmake quirk: depending on codegen.out.xml or generate_headers only is not enough, needs both + # test by manually patching any library/xml/moo.xml, run make ruby-autogen-rb -j2, and check build/plugins/ruby/ruby-autogen.rb for patched xml data + DEPENDS generate_headers ${dfhack_SOURCE_DIR}/library/include/df/codegen.out.xml ${CMAKE_CURRENT_SOURCE_DIR}/codegen.pl COMMENT ruby-autogen.rb ) ADD_CUSTOM_TARGET(ruby-autogen-rb DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ruby-autogen.rb) |
