mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1301 from ethereum/emptystringreplace
Fix cmake empty string replace.
This commit is contained in:
commit
2367ce5604
@ -180,12 +180,12 @@ elseif (DEFINED MSVC)
|
|||||||
# Always use Release variant of C++ runtime.
|
# Always use Release variant of C++ runtime.
|
||||||
# We don't want to provide Debug variants of all dependencies. Some default
|
# We don't want to provide Debug variants of all dependencies. Some default
|
||||||
# flags set by CMake must be tweaked.
|
# flags set by CMake must be tweaked.
|
||||||
string(REPLACE "/MDd" "/MD" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
string(REPLACE "/MDd" "/MD" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||||
string(REPLACE "/D_DEBUG" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
string(REPLACE "/D_DEBUG" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||||
string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||||
string(REPLACE "/MDd" "/MD" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
|
string(REPLACE "/MDd" "/MD" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
|
||||||
string(REPLACE "/D_DEBUG" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
|
string(REPLACE "/D_DEBUG" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
|
||||||
string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
|
string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
|
||||||
set_property(GLOBAL PROPERTY DEBUG_CONFIGURATIONS OFF)
|
set_property(GLOBAL PROPERTY DEBUG_CONFIGURATIONS OFF)
|
||||||
|
|
||||||
# disable empty object file warning
|
# disable empty object file warning
|
||||||
|
@ -119,7 +119,7 @@ function(eth_use TARGET REQUIRED)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
foreach(MODULE ${ARGN})
|
foreach(MODULE ${ARGN})
|
||||||
string(REPLACE "::" ";" MODULE_PARTS ${MODULE})
|
string(REPLACE "::" ";" MODULE_PARTS "${MODULE}")
|
||||||
list(GET MODULE_PARTS 0 MODULE_MAIN)
|
list(GET MODULE_PARTS 0 MODULE_MAIN)
|
||||||
list(LENGTH MODULE_PARTS MODULE_LENGTH)
|
list(LENGTH MODULE_PARTS MODULE_LENGTH)
|
||||||
if (MODULE_LENGTH GREATER 1)
|
if (MODULE_LENGTH GREATER 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user