- test: |
cmake --build debug -j2 --target test
- install: |
- cmake --build debug -j2 --target install -- DESTDIR=/tmp
+ cmake --install debug --prefix /tmp
- package: |
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCS_MANGZ=ON -S libmemcached -B release
cmake --build release -j2 --target package -- VERBOSE=
+ cmake -DCPACK_COMPONENT_INSTALL=ON release
cmake --build release -j2 --target push-artifacts -- VERBOSE=
- test: |
cmake --build debug -j2 --target test
- install: |
- cmake --build debug -j2 --target install -- DESTDIR=/tmp
+ cmake --install debug --prefix /tmp
- package: |
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCS_MANGZ=ON -S libmemcached -B release
cmake --build release -j2 --target package -- VERBOSE=
+ cmake -DCPACK_COMPONENT_INSTALL=ON release
cmake --build release -j2 --target push-artifacts -- VERBOSE=
run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test
- name: Install
if: env.BUILD_TESTING == 'ON'
- run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp
+ run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} --prefix /tmp
- name: Failed tests log
if: ${{ env.BUILD_TESTING == 'ON' && failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
--data-urlencode "level=info" \
--data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/actions/runs/${GITHUB_RUN_ID}) (${ImageOS}/${CC:-${CC_VND}-${CC_VER}})"
- name: Notify Gitter (failure)
- if: ${{ failure() && runner.os!='Windows'}}
+ if: ${{ failure() && runner.os != 'Windows'}}
run: |
REF=$(basename ${GITHUB_REF})
curl -sS "${{ secrets.GITTER }}" \
if(${CMAKE_VERSION} VERSION_LESS "3.12")
set(TARGET_NAMELINK_COMPONENT "")
else()
- set(TARGET_NAMELINK_COMPONENT NAMELINK_COMPONENT dev)
+ set(TARGET_NAMELINK_COMPONENT NAMELINK_COMPONENT dev DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
option(BUILD_TESTING "whether to enable build of the test suite"
INSTALL_RPATH ${CMAKE_INSTALL_RPATH}/../${CMAKE_INSTALL_LIBDIR})
endif()
install(TARGETS memaslap
- COMPONENT bin
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+ RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
endif()
set_target_properties(${CLIENT} PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_RPATH}/../${CMAKE_INSTALL_LIBDIR})
endif()
- install(TARGETS ${CLIENT}
- COMPONENT bin
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+ install(TARGETS ${CLIENT} RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR})
endforeach()
# extra sources
configure_file(hashkitcon.h.in hashkitcon.h @ONLY)
install(TARGETS libhashkit EXPORT libhashkit-targets
- LIBRARY
- COMPONENT lib
+ RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY COMPONENT lib DESTINATION ${CMAKE_INSTALL_LIBDIR}
${TARGET_NAMELINK_COMPONENT}
- DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ )
export(EXPORT libhashkit-targets NAMESPACE libmemcached::)
install(EXPORT libhashkit-targets NAMESPACE libmemcached::
COMPONENT dev
enable_dtrace_for(libmemcached libmemcached_probes.d dtrace_probes.h)
install(TARGETS libmemcached EXPORT libmemcached-targets
- LIBRARY
- COMPONENT lib
+ RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY COMPONENT lib DESTINATION ${CMAKE_INSTALL_LIBDIR}
${TARGET_NAMELINK_COMPONENT}
- DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ )
export(EXPORT libmemcached-targets NAMESPACE libmemcached::)
install(EXPORT libmemcached-targets NAMESPACE libmemcached::
COMPONENT dev
$<INSTALL_INTERFACE:include>)
install(TARGETS libmemcachedprotocol EXPORT libmemcachedprotocol-targets
- LIBRARY
- COMPONENT lib
+ RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY COMPONENT lib DESTINATION ${CMAKE_INSTALL_LIBDIR}
${TARGET_NAMELINK_COMPONENT}
- DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ )
export(EXPORT libmemcachedprotocol-targets NAMESPACE libmemcached::)
install(EXPORT libmemcachedprotocol-targets NAMESPACE libmemcached::
COMPONENT dev
$<INSTALL_INTERFACE:include>)
install(TARGETS libmemcachedutil EXPORT libmemcachedutil-targets
- LIBRARY
- COMPONENT lib
+ RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY COMPONENT lib DESTINATION ${CMAKE_INSTALL_LIBDIR}
${TARGET_NAMELINK_COMPONENT}
- DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ )
export(EXPORT libmemcachedutil-targets NAMESPACE libmemcached::)
install(EXPORT libmemcachedutil-targets NAMESPACE libmemcached::
COMPONENT dev