Skip to content

Commit 5192965

Browse files
authored
Merge pull request #13460 from Pospelove/patch-1
Set CMake policy `CMP0115` to `NEW`: "Source file extensions must be explicit"
2 parents 220aece + 6d331a8 commit 5192965

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/EthPolicy.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ macro (eth_policy)
2525
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
2626
cmake_policy(SET CMP0135 NEW)
2727
endif()
28+
29+
if(POLICY CMP0115)
30+
# Require explicit extensions for source files, do not guess.
31+
# The extra calls to GetFileAttributesW significantly slow down cmake on Windows.
32+
# https://gitlab.kitware.com/cmake/cmake/-/issues/23154
33+
cmake_policy(SET CMP0115 NEW)
34+
endif()
2835
endmacro()

0 commit comments

Comments
 (0)