aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindLEX.cmake
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-15 18:59:33 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-15 18:59:33 +0000
commit3904b33c81794ae714ae8e269d49082ef65abcf5 (patch)
treed02fef752a7e308a04d528308ff711448c8626c7 /cmake/modules/FindLEX.cmake
parentd23edf75f639cb250d61cee9b2cfd14ab787b845 (diff)
CMake now successfully builds dumpcap
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28745 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'cmake/modules/FindLEX.cmake')
-rw-r--r--cmake/modules/FindLEX.cmake9
1 files changed, 4 insertions, 5 deletions
diff --git a/cmake/modules/FindLEX.cmake b/cmake/modules/FindLEX.cmake
index 38dfeac5d4..cdaaf7f715 100644
--- a/cmake/modules/FindLEX.cmake
+++ b/cmake/modules/FindLEX.cmake
@@ -38,19 +38,18 @@ MACRO(ADD_LEX_FILES _sources )
GET_FILENAME_COMPONENT(_basename ${_current_FILE} NAME_WE)
SET(_outc ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.c)
- SET(_outh ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.h)
ADD_CUSTOM_COMMAND(
- OUTPUT ${_outc} ${_outh}
- COMMAND ${LEX_EXECUTABLE}
+ OUTPUT ${_outc}
+# COMMAND ${LEX_EXECUTABLE}
+ COMMAND ${CMAKE_SOURCE_DIR}/tools/runlex.sh ${LEX_EXECUTABLE}
ARGS
-o${_outc}
- --header-file=${_outh}
${_in}
DEPENDS ${_in}
)
- SET(${_sources} ${${_sources}} ${_outc} ${_outh} )
+ SET(${_sources} ${${_sources}} ${_outc} )
ENDFOREACH (_current_FILE)
ENDMACRO(ADD_LEX_FILES)