summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-10-01 14:24:11 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-10-01 14:24:11 (GMT)
commit152cc9e1433171adc5bd44ac58ecd50971bc2c3f (patch)
treedabe87cf7bc3828777cb3af25b19c7c0a48dca1e /src
parent32ee0d816f7a329ba7e625765186c36dcf054efc (diff)
downloadhdf5-152cc9e1433171adc5bd44ac58ecd50971bc2c3f.zip
hdf5-152cc9e1433171adc5bd44ac58ecd50971bc2c3f.tar.gz
hdf5-152cc9e1433171adc5bd44ac58ecd50971bc2c3f.tar.bz2
[svn-r27926] Fix dependencies of generated headers.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f9b4a74..6d74939 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -808,11 +808,8 @@ if (HDF5_GENERATE_HEADERS)
COMMENT " Creating Assignment overflow macro"
)
- add_custom_target(generate_precompiled DEPENDS
- "${HDF5_SRC_DIR}/H5version.h;${HDF5_SRC_DIR}/H5overflow.h")
-
add_custom_target(run_perl_scripts ALL
- DEPENDS ${HDF5_SRC_DIR}/H5Edefin.h ${HDF5_SRC_DIR}/H5version.h ${HDF5_SRC_DIR}/H5overflow.h
+ DEPENDS ${HDF5_SRC_DIR}/H5Edefin.h ${HDF5_SRC_DIR}/H5Einit.h ${HDF5_SRC_DIR}/H5Epubgen.h ${HDF5_SRC_DIR}/H5Eterm.h ${HDF5_SRC_DIR}/H5version.h ${HDF5_SRC_DIR}/H5overflow.h
)
else (PERL_FOUND)
message (STATUS "Cannot generate headers - perl not found")
@@ -829,7 +826,7 @@ if (MSVC OR MINGW)
target_link_libraries (H5detect "ws2_32.lib")
endif (MSVC OR MINGW)
if (HDF5_GENERATE_HEADERS)
- add_dependencies(H5detect generate_precompiled)
+ add_dependencies(H5detect run_perl_scripts)
else (HDF5_GENERATE_HEADERS)
add_dependencies(H5detect "${H5_GENERATED_HEADERS}")
endif (HDF5_GENERATE_HEADERS)
@@ -848,7 +845,7 @@ if (MSVC OR MINGW)
target_link_libraries (H5make_libsettings "ws2_32.lib")
endif (MSVC OR MINGW)
if (HDF5_GENERATE_HEADERS)
- add_dependencies(H5detect generate_precompiled)
+ add_dependencies(H5make_libsettings run_perl_scripts)
else (HDF5_GENERATE_HEADERS)
add_dependencies(H5make_libsettings "${H5_GENERATED_HEADERS}")
endif (HDF5_GENERATE_HEADERS)