HowardHinnant / date

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

Cannot override CMake options when fetching the library via FetchContent_Declare() #812

Closed TheStormN closed 1 month ago

TheStormN commented 4 months ago

CMake 3.13 added support for adjusting option() variables of libraries which are fetched by FetchContent_Declare(). However, the date library CMakeLits.txt file does not support that and so an ugly hacks are needed to make it work. The fix is really trivial and I will submit a PR about that.