summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-09-20 22:03:40 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-09-20 22:03:40 (GMT)
commit60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355 (patch)
tree61c09708596396a153883d608a8fc8426452e533 /fortran/src
parenta3bd6e7aa4d9206004d16ea40aa95178392f2446 (diff)
downloadhdf5-60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355.zip
hdf5-60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355.tar.gz
hdf5-60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355.tar.bz2
Add WORKING_DIR to command
Diffstat (limited to 'fortran/src')
-rw-r--r--fortran/src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
index 527f71f..d4ca791 100644
--- a/fortran/src/CMakeLists.txt
+++ b/fortran/src/CMakeLists.txt
@@ -164,6 +164,7 @@ set (CMD $<TARGET_FILE:H5_buildiface>)
add_custom_command (
OUTPUT ${HDF5_F90_BINARY_DIR}/H5_gen.F90
COMMAND ${CMD}
+ WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}
DEPENDS ${f90_F_GEN_SOURCES}
COMMENT "Generating the H5_gen.F90 file"
)
@@ -177,6 +178,7 @@ if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
add_custom_command (
OUTPUT ${HDF5_F90_BINARY_DIR}/shared/H5_gen.F90
COMMAND ${CMDSH}
+ WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}/shared
DEPENDS ${f90_F_GEN_SOURCES}
COMMENT "Generating the H5_gen.F90 shared file"
)