mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12702 from ethereum/ninja-build-fix
cmake/EthCompilerSettings.cmake: generator expression fix for ninja.
This commit is contained in:
commit
5f4c91cc6d
@ -54,9 +54,10 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
|
|||||||
add_compile_options(-Wsign-conversion)
|
add_compile_options(-Wsign-conversion)
|
||||||
add_compile_options(-Wconversion)
|
add_compile_options(-Wconversion)
|
||||||
|
|
||||||
eth_add_cxx_compiler_flag_if_supported(
|
check_cxx_compiler_flag(-Wextra-semi WEXTRA_SEMI)
|
||||||
$<$<COMPILE_LANGUAGE:CXX>:-Wextra-semi>
|
if(WEXTRA_SEMI)
|
||||||
)
|
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wextra-semi>)
|
||||||
|
endif()
|
||||||
eth_add_cxx_compiler_flag_if_supported(-Wfinal-dtor-non-final-class)
|
eth_add_cxx_compiler_flag_if_supported(-Wfinal-dtor-non-final-class)
|
||||||
eth_add_cxx_compiler_flag_if_supported(-Wnewline-eof)
|
eth_add_cxx_compiler_flag_if_supported(-Wnewline-eof)
|
||||||
eth_add_cxx_compiler_flag_if_supported(-Wsuggest-destructor-override)
|
eth_add_cxx_compiler_flag_if_supported(-Wsuggest-destructor-override)
|
||||||
|
Loading…
Reference in New Issue
Block a user