apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.97k stars 314 forks source link

Error occurred that "get_property could not find TARGET DOWNLOAD_EXTRACT_TIMESTAMP" while building third-parties #1927

Closed empiredan closed 6 months ago

empiredan commented 7 months ago

Error occurred while building third-parties:

-- Setting up third-parties...
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:3111 (get_property):
  get_property could not find TARGET DOWNLOAD_EXTRACT_TIMESTAMP.  Perhaps it
  has not yet been created.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:3236 (_ep_get_file_deps)
  /usr/share/cmake/Modules/ExternalProject.cmake:3684 (_ep_add_configure_command)
  CMakeLists.txt:151 (ExternalProject_Add)

CMake version: 3.20.2

GCC version: 8.5.0 20210514 (Red Hat 8.5.0-10) (GCC)

Building command:

./run.sh build --test -t release -v -j $(nproc) -c --clear_thirdparty

As is described in https://cmake.org/cmake/help/latest/module/ExternalProject.html, DOWNLOAD_EXTRACT_TIMESTAMP was introduced in version 3.24.

DOWNLOAD_EXTRACT_TIMESTAMP <bool>
New in version 3.24.

Thus the minimum required version of CMake should be increased from 3.11.0 to 3.24.0.

empiredan commented 6 months ago

This issue is fixed by https://github.com/apache/incubator-pegasus/pull/1928 and https://github.com/apache/incubator-pegasus-website/pull/80.