diff options
author | chriseth <c@ethdev.com> | 2016-10-27 22:29:42 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-10-27 22:30:11 +0800 |
commit | 81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb (patch) | |
tree | 6d1cfe7760594ec811294e440f5fd39f85e065d8 | |
parent | 49089f65bac2e711a0f8ccaac15fdda27563b040 (diff) | |
download | dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.tar dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.tar.gz dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.tar.bz2 dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.tar.lz dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.tar.xz dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.tar.zst dexon-solidity-81254e0eb7a987da101a1f9cef7e9d7a2fd8f5fb.zip |
Fix cmake empty string replace.
-rw-r--r-- | cmake/EthCompilerSettings.cmake | 12 | ||||
-rw-r--r-- | cmake/EthDependencies.cmake | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index 066be4c1..af6ae928 100644 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -180,12 +180,12 @@ elseif (DEFINED MSVC) # Always use Release variant of C++ runtime. # We don't want to provide Debug variants of all dependencies. Some default # flags set by CMake must be tweaked. - 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 "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_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 "/RTC1" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_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 "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_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 "/RTC1" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}") set_property(GLOBAL PROPERTY DEBUG_CONFIGURATIONS OFF) # disable empty object file warning diff --git a/cmake/EthDependencies.cmake b/cmake/EthDependencies.cmake index 72585d11..a5e9b0c5 100644 --- a/cmake/EthDependencies.cmake +++ b/cmake/EthDependencies.cmake @@ -119,7 +119,7 @@ function(eth_use TARGET REQUIRED) endif() foreach(MODULE ${ARGN}) - string(REPLACE "::" ";" MODULE_PARTS ${MODULE}) + string(REPLACE "::" ";" MODULE_PARTS "${MODULE}") list(GET MODULE_PARTS 0 MODULE_MAIN) list(LENGTH MODULE_PARTS MODULE_LENGTH) if (MODULE_LENGTH GREATER 1) |