Skip to content

Commit

Permalink
Attempt to fix ninja builds; it's unclear as to where the root dir …
Browse files Browse the repository at this point in the history
…for BUILD_BYPRODUCTS is
  • Loading branch information
David-McKenna committed Oct 12, 2024
1 parent 60ef845 commit 53d62a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ ExternalProject_Add(internal_zlib
BUILD_IN_SOURCE TRUE # Keep source beside install prefix
INSTALL_COMMAND cmake -E echo "Skipping zlib install step"
UPDATE_COMMAND ""
BUILD_BYPRODUCTS src/internal_zlib/libz.a
)
ExternalProject_Get_Property(internal_zlib INSTALL_DIR)
set(zlib_INSTALL_DIR ${INSTALL_DIR})
Expand All @@ -154,6 +155,7 @@ ExternalProject_Add(internal_hdf5
INSTALL_COMMAND cmake -E echo "Skipping hdf5 install step"
UPDATE_COMMAND ""
DEPENDS internal_zlib
BUILD_BYPRODUCTS src/internal_hdf5/src/.libs/libhdf5.a
)
ExternalProject_Get_Property(internal_hdf5 INSTALL_DIR)
set(hdf5_INSTALL_DIR ${INSTALL_DIR})
Expand All @@ -172,6 +174,7 @@ ExternalProject_Add(internal_bitshuffle
INSTALL_COMMAND cmake -E echo "Skipping bitshuffle install step"
UPDATE_COMMAND ""
DEPENDS internal_hdf5 zstd internal_zlib
BUILD_BYPRODUCTS src/internal_bitshuffle/libh5bshuf.a
)
ExternalProject_Get_Property(internal_bitshuffle INSTALL_DIR)
set(bitshuffle_INSTALL_DIR ${INSTALL_DIR})
Expand Down Expand Up @@ -204,6 +207,7 @@ ExternalProject_ADD(internal_FFTW3F
BUILD_IN_SOURCE TRUE
INSTALL_COMMAND cmake -E echo "Skipping FFTW3 install step"
UPDATE_COMMAND ""
BUILD_BYPRODUCTS src/internal_FFTW3F/threads/.libs/libfftw3f_omp.a src/internal_FFTW3F/.libs/libfftw3f.a
)
ExternalProject_Get_Property(internal_FFTW3F install_dir)
set(fftw3f_INSTALL_DIR ${install_dir})
Expand Down

0 comments on commit 53d62a6

Please sign in to comment.