HowardHinnant / date

A date and time library based on the C++11/14/17 <chrono> header
Other
3.07k stars 669 forks source link

Failed to install tzdb #818

Open NahuFigueroa97 opened 4 months ago

NahuFigueroa97 commented 4 months ago

Hi Howard! I try install tzdb in my project using CPMAddPackage :

CPMAddPackage(
        NAME date
        # TODO: This is master, not a release.
        # Using specific commit hash from master to avoid STDOFF errors,
        # if a version (newer than 3.0.1) is released update this.
        GITHUB_REPOSITORY HowardHinnant/date
        GIT_TAG 22ceabf205d8d678710a43154da5a06b701c5830
        OPTIONS
          "AUTO_DOWNLOAD 1"
          "INSTALL /var/project/"
)

but I don't see the database being downloaded and decompressed in that path

HowardHinnant commented 4 months ago

Hi. Here are the installation instructions I recommend and support: https://howardhinnant.github.io/date/tz.html#Installation.

NahuFigueroa97 commented 4 months ago

Thanks for your answer! I have read the document but it does not fit what I need, that's why I looked for this approach, also try not to place the options in the CPM but when building the project: cmake -DAUTO_DOWNLOAD=1 -DINSTALL="/var/project" and I did not get the base downloaded in that directory either after compiling with make

TheStormN commented 1 month ago

@NahuFigueroa97 I think your issue can be solved by my PR #813

TheStormN commented 1 month ago

@NahuFigueroa97 The PR is merged. You should be good to go now.