Skip to content
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

Merged
merged 4 commits into from
Mar 7, 2018
Merged

Build editline #16

merged 4 commits into from
Mar 7, 2018

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented Mar 5, 2018

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.

TODO: the cmake script is copied from the secp256k1 part in the
      same file, may need to review/fix the MSVC and MinGW part.
Copy link

@jmjatlanta jmjatlanta left a 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
Copy link

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
Copy link

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
Copy link

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")
Copy link

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
Copy link

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.

@abitmore abitmore requested a review from pmconrad March 6, 2018 14:07
@abitmore
Copy link
Member Author

abitmore commented Mar 6, 2018

@pmconrad Please review again :)

@pmconrad
Copy link

pmconrad commented Mar 7, 2018

Didn't test MSVC / MINGW

@abitmore abitmore merged commit 5f6e4d8 into master Mar 7, 2018
@abitmore abitmore deleted the editline-build branch March 7, 2018 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants