Cmake The: ((install)) Download_extract_timestamp Option Was Not Given And Policy Cmp0135 Is Not Set

If you are seeing the warning you are likely using a newer version of CMake (3.24+) to build a project that downloads and extracts an archive (like a .zip or .tar.gz ).

Here is everything you need to know to fix this warning and understand why it exists. 🛠️ The Quick Fix If you are seeing the warning you are

Most modern CMake projects use FetchContent . To fix the warning here, ensure your declaration looks like this: If you are seeing the warning you are

ExternalProject_Add( ext_proj URL "..." DOWNLOAD_EXTRACT_TIMESTAMP FALSE # Set to FALSE to keep old behavior ) Use code with caution. 3. Suppressing for Third-Party Code If you are seeing the warning you are

FetchContent_Declare( my_dependency URL "..." DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) Use code with caution. 2. Using ExternalProject If you are using the ExternalProject module: