-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build editline #16
Build editline #16
Conversation
TODO: the cmake script is copied from the secp256k1 part in the same file, may need to review/fix the MSVC and MinGW part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with Ubuntu, works well.
CMakeLists.txt
Outdated
|
||
target_include_directories( editline PRIVATE "${EDITLINE_DIR}" PUBLIC "${EDITLINE_DIR}/include" ) | ||
|
||
set( EDITLINE_BUILD_DEFINES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theses defines don't make sense for editline.
CMakeLists.txt
Outdated
ExternalProject_Add( project_editline | ||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/vendor/editline | ||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline | ||
CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline/configure --prefix=${CMAKE_CURRENT_BINARY_DIR}/vendor/editline --with-bignum=no --host=x86_64-w64-mingw32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--with-bignum doesn't make sense for editline
CMakeLists.txt
Outdated
ExternalProject_Add( project_editline | ||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/vendor/editline | ||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline | ||
CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline/configure --prefix=${CMAKE_CURRENT_BINARY_DIR}/vendor/editline --with-bignum=no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--with-bignum doesn't make sense for editline
CMakeLists.txt
Outdated
set(EDITLINE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline" ) | ||
find_package(Editline) | ||
|
||
file(GLOB HEADERS "include/bts/cli/*.hpp") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line looks obsolete, please remove.
CMakeLists.txt
Outdated
@@ -363,7 +407,7 @@ target_include_directories(fc | |||
${OPENSSL_INCLUDE_DIR} | |||
"vendor/diff-match-patch-cpp-stl" | |||
${CMAKE_CURRENT_SOURCE_DIR}/vendor/websocketpp | |||
"${editline_includes}" | |||
${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this line is superfluous, because vendor/editline doesn't contain any includes, and vendor/editline/include should have been taken care of by setting INTERFACE_INCLUDE_DIRECTORIES above.
@pmconrad Please review again :) |
Didn't test MSVC / MINGW |
More work for bitshares/bitshares-core#673.
TODO: the cmake script is copied from the secp256k1 part in the
same file, may need to review/fix the MSVC and MinGW part.