summaryrefslogtreecommitdiff
path: root/plugins/ruby
diff options
context:
space:
mode:
authorjj2012-08-11 20:11:00 +0200
committerjj2012-08-11 20:11:00 +0200
commit4c720c75046ccdefb7705a1d3742f22d75a314fe (patch)
tree7cf4188f1d854a75c518c2cf40c9eb5f2b1955cc /plugins/ruby
parent942b245461606a902b6cfda38fcdbf9e3b6c3131 (diff)
downloaddfhack-4c720c75046ccdefb7705a1d3742f22d75a314fe.tar.gz
dfhack-4c720c75046ccdefb7705a1d3742f22d75a314fe.tar.bz2
dfhack-4c720c75046ccdefb7705a1d3742f22d75a314fe.tar.xz
ruby: add explicit paths everywhere for ruby-autogen
Diffstat (limited to 'plugins/ruby')
-rw-r--r--plugins/ruby/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ruby/CMakeLists.txt b/plugins/ruby/CMakeLists.txt
index 0d9f1187..e10ee38b 100644
--- a/plugins/ruby/CMakeLists.txt
+++ b/plugins/ruby/CMakeLists.txt
@@ -18,12 +18,12 @@ IF (DL_RUBY AND NOT APPLE)
ENDIF(DL_RUBY AND NOT APPLE)
ADD_CUSTOM_COMMAND(
- OUTPUT ruby-autogen.rb
- COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/codegen.pl ${dfhack_SOURCE_DIR}/library/include/df/codegen.out.xml ruby-autogen.rb
+ 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
COMMENT ruby-autogen.rb
)
-ADD_CUSTOM_TARGET(ruby-autogen-rb DEPENDS ruby-autogen.rb)
+ADD_CUSTOM_TARGET(ruby-autogen-rb DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ruby-autogen.rb)
INCLUDE_DIRECTORIES("${dfhack_SOURCE_DIR}/depends/tthread")