mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #13460 from Pospelove/patch-1
Set CMake policy `CMP0115` to `NEW`: "Source file extensions must be explicit"
This commit is contained in:
commit
5192965229
@ -25,4 +25,11 @@ macro (eth_policy)
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
|
||||
cmake_policy(SET CMP0135 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0115)
|
||||
# Require explicit extensions for source files, do not guess.
|
||||
# The extra calls to GetFileAttributesW significantly slow down cmake on Windows.
|
||||
# https://gitlab.kitware.com/cmake/cmake/-/issues/23154
|
||||
cmake_policy(SET CMP0115 NEW)
|
||||
endif()
|
||||
endmacro()
|
||||
|
Loading…
Reference in New Issue
Block a user