Skip to content

Commit dcbb210

Browse files
committed
Fix CMake FetchContent timestamp warning
- Add DOWNLOAD_EXTRACT_TIMESTAMP TRUE to FetchContent_Declare - Ensures proper timestamp handling for downloaded GoogleTest - Removes CMake policy CMP0135 warning - Improves build reproducibility
1 parent d3e51d9 commit dcbb210

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

HelloWorld/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ include(FetchContent)
3333
FetchContent_Declare(
3434
googletest
3535
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
36+
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
3637
)
3738
FetchContent_MakeAvailable(googletest)
3839

0 commit comments

Comments
 (0)