diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-09-20 22:03:40 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-09-20 22:03:40 (GMT) |
commit | 60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355 (patch) | |
tree | 61c09708596396a153883d608a8fc8426452e533 | |
parent | a3bd6e7aa4d9206004d16ea40aa95178392f2446 (diff) | |
download | hdf5-60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355.zip hdf5-60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355.tar.gz hdf5-60adc706e6c8bdee4a2e9a7c211f2f2a12dfc355.tar.bz2 |
Add WORKING_DIR to command
-rw-r--r-- | fortran/src/CMakeLists.txt | 2 |
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" ) |