summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-10-01 14:48:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-10-01 14:48:03 (GMT)
commit4dc2218ab5622f81c3dd9d68020ac7357f413c50 (patch)
treee58da59cd6541b0158e8553e0018a36abe07a47c /hl
parent152cc9e1433171adc5bd44ac58ecd50971bc2c3f (diff)
downloadhdf5-4dc2218ab5622f81c3dd9d68020ac7357f413c50.zip
hdf5-4dc2218ab5622f81c3dd9d68020ac7357f413c50.tar.gz
hdf5-4dc2218ab5622f81c3dd9d68020ac7357f413c50.tar.bz2
[svn-r27927] Fix dependencies of flex/bison files.
Diffstat (limited to 'hl')
-rw-r--r--hl/src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/hl/src/CMakeLists.txt b/hl/src/CMakeLists.txt
index a90e3c8..df1962b 100644
--- a/hl/src/CMakeLists.txt
+++ b/hl/src/CMakeLists.txt
@@ -20,20 +20,22 @@ if (HDF5_GENERATE_HEADERS)
add_custom_command (
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.c ${CMAKE_CURRENT_BINARY_DIR}/H5LTparse.h
+ PRE_BUILD
COMMAND "${CMAKE_COMMAND}"
-D "GEN_DIR=genLT"
-D "FILE_PARSE=H5LTparse"
-P "${HDF_RESOURCES_DIR}/HDF5_Process_Flex_Files.cmake"
- DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/genLT/H5LTparse.c"
+ DEPENDS "${BISON_H5LT_PARSER_OUTPUTS}"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_custom_command (
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/H5LTanalyze.c
+ PRE_BUILD
COMMAND "${CMAKE_COMMAND}"
-D "GEN_DIR=genLT"
-D "FILE_ANALYZE=H5LTanalyze.c"
-P "${HDF_RESOURCES_DIR}/HDF5_Process_Flex_Files.cmake"
- DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/genLT/H5LTanalyze.c"
+ DEPENDS "${FLEX_H5LT_SCANNER_OUTPUTS}"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_custom_target (process_gen_H5LT