-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'hardfork' branch, apply minor fixes
Resolved conflicts: - libraries/chain/db_market.cpp - tests/tests/settle_tests.cpp
- Loading branch information
Showing
247 changed files
with
21,664 additions
and
7,493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
macro(add_flag_append _VAR_NAME _FLAG) | ||
set(${_VAR_NAME} "${${_VAR_NAME}} ${_FLAG}") | ||
endmacro(add_flag_append _VAR_NAME _FLAG) | ||
|
||
macro(add_linker_flag _FLAG) | ||
#executables | ||
add_flag_append(CMAKE_C_LINK_FLAGS "-Wl,${_FLAG}") | ||
add_flag_append(CMAKE_CXX_LINK_FLAGS "-Wl,${_FLAG}") | ||
#libraries | ||
add_flag_append(CMAKE_SHARED_LIBRARY_C_FLAGS "-Wl,${_FLAG}") | ||
add_flag_append(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-Wl,${_FLAG}") | ||
endmacro(add_linker_flag _FLAG) | ||
|
||
include(CheckCXXCompilerFlag) | ||
|
||
macro(add_compiler_flag_if_available _FLAG) | ||
string(TOUPPER "${_FLAG}" _TEMPVAR1) | ||
string(REPLACE "-" "_" _TEMPVAR2 "${_TEMPVAR1}") | ||
string(CONCAT _TEMPVAR3 "HAVE" "${_TEMPVAR2}") | ||
set(CMAKE_REQUIRED_FLAGS "${_FLAG}") | ||
check_cxx_compiler_flag("${_FLAG}" ${_TEMPVAR3}) | ||
if(${_TEMPVAR3}) | ||
add_flag_append(CMAKE_CXX_FLAGS ${_FLAG}) | ||
endif() | ||
endmacro(add_compiler_flag_if_available _VAR_NAME _FLAG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.