Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add URL_MD5 for CMake dependencies #188

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CMake/build-from-src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function(build_from_src [dep])
ExternalProject_Add(
aio
URL ${PHOTON_AIO_SOURCE}
URL_MD5 605237f35de238dfacc83bcae406d95d
BUILD_IN_SOURCE ON
CONFIGURE_COMMAND ""
BUILD_COMMAND make prefix=${BINARY_DIR} install -j
Expand All @@ -21,8 +22,9 @@ function(build_from_src [dep])
ExternalProject_Add(
zlib
URL ${PHOTON_ZLIB_SOURCE}
URL_MD5 9b8aa094c4e5765dabf4da391f00d15c
BUILD_IN_SOURCE ON
PATCH_COMMAND sed -ie "/CFLAGS.*CFLAGS--O3/ s/}/} -fPIC/" configure
PATCH_COMMAND sed -i -e "/CFLAGS.*CFLAGS--O3/ s/}/} -fPIC/" configure
CONFIGURE_COMMAND ./configure --prefix=${BINARY_DIR} --static
BUILD_COMMAND make -j
INSTALL_COMMAND make install
Expand All @@ -35,8 +37,9 @@ function(build_from_src [dep])
ExternalProject_Add(
uring
URL ${PHOTON_URING_SOURCE}
URL_MD5 2e8c3c23795415475654346484f5c4b8
BUILD_IN_SOURCE ON
PATCH_COMMAND sed -ie "/L_CFLAGS=$/ s/=/=-fPIC $/" src/Makefile
PATCH_COMMAND sed -i -e "/L_CFLAGS=\$/ s/=/=-fPIC\ /" src/Makefile
CONFIGURE_COMMAND ./configure --prefix=${BINARY_DIR}
BUILD_COMMAND V=1 make -C src
INSTALL_COMMAND make install
Expand All @@ -48,6 +51,7 @@ function(build_from_src [dep])
ExternalProject_Add(
gflags
URL ${PHOTON_GFLAGS_SOURCE}
URL_MD5 1a865b93bacfa963201af3f75b7bd64c
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_POSITION_INDEPENDENT_CODE=ON
INSTALL_COMMAND ""
)
Expand All @@ -59,6 +63,7 @@ function(build_from_src [dep])
ExternalProject_Add(
googletest
URL ${PHOTON_GOOGLETEST_SOURCE}
URL_MD5 e82199374acdfda3f425331028eb4e2a
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DINSTALL_GTEST=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
INSTALL_COMMAND ""
)
Expand Down