mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixes CMake caching issues on Windows.
This commit is contained in:
parent
89b1a42b5c
commit
5bf2eab6a4
@ -10,7 +10,9 @@ include(CheckCXXCompilerFlag)
|
||||
#
|
||||
function(eth_add_cxx_compiler_flag_if_supported FLAG)
|
||||
# Remove leading - or / from the flag name.
|
||||
string(REGEX REPLACE "^-|/" "" name ${FLAG})
|
||||
string(REGEX REPLACE "^[-/]" "" name ${FLAG})
|
||||
# Deletes any ':' because it's invalid variable names.
|
||||
string(REGEX REPLACE ":" "" name ${name})
|
||||
check_cxx_compiler_flag(${FLAG} ${name})
|
||||
if(${name})
|
||||
add_compile_options(${FLAG})
|
||||
|
Loading…
Reference in New Issue
Block a user