aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGraham Bloice <graham.bloice@trihedral.com>2013-10-13 09:47:32 +0000
committerGraham Bloice <graham.bloice@trihedral.com>2013-10-13 09:47:32 +0000
commit1299f24e7bafc26ea65c52159cd389aefbda9bdd (patch)
tree540478363eff8db407d2ba48748ec21f084ee2ab /cmake
parent9c4ee86784bd0f5cb02f7e7b7af639438352d83b (diff)
Set CMake to use Python when building the tap register files.
svn path=/trunk/; revision=52581
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/UseMakeTapReg.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmake/modules/UseMakeTapReg.cmake b/cmake/modules/UseMakeTapReg.cmake
index 49b5dbc1b9..bb41c80d99 100644
--- a/cmake/modules/UseMakeTapReg.cmake
+++ b/cmake/modules/UseMakeTapReg.cmake
@@ -1,19 +1,19 @@
#
# $Id$
#
-MACRO(REGISTER_TAP_FILES _outputfile )
- set( _sources ${ARGN} )
+MACRO(REGISTER_TAP_FILES _outputfile _registertype )
+ set( _sources ${ARGN})
ADD_CUSTOM_COMMAND(
OUTPUT
${_outputfile}
- COMMAND ${SH_EXECUTABLE} ${SH_FLAGS1} ${SH_FLAGS2}
- ${CMAKE_SOURCE_DIR}/tools/make-tapreg-dotc
- ${_outputfile}
- ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND ${PYTHON_EXECUTABLE}
+ ${CMAKE_SOURCE_DIR}/tools/make-tap-reg.py
+ "${CMAKE_CURRENT_SOURCE_DIR}"
+ ${_registertype}
${_sources}
DEPENDS
- ${CMAKE_SOURCE_DIR}/tools/make-tapreg-dotc
+ ${CMAKE_SOURCE_DIR}/tools/make-tap-reg.py
${_sources}
- )
+)
ENDMACRO(REGISTER_TAP_FILES)