Skip to content

Commit

Permalink
Swig fixes (hyperledger-iroha#1133):
Browse files Browse the repository at this point in the history
- fix path to swig patch
- use tarball instead of git for swig url

Signed-off-by: luckychess <[email protected]>
  • Loading branch information
luckychess authored and x3medima17 committed Mar 30, 2018
1 parent 9b7b2ea commit e3f9ab8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cmake/Modules/Findswig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ find_package_handle_standard_args(SWIG DEFAULT_MSG
if(NOT SWIG_EXECUTABLE)
find_package(Git REQUIRED)

set(URL https://github.com/swig/swig)
set(VERSION fbeb566014a1d320df972aef965daf042db7db36) # Tag origin/rel-3.0.12
set_target_description(swig "Simplified Wrapper and Interface Generator (SWIG)" ${URL} ${VERSION})
set(URL https://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz)
set_target_description(swig "Simplified Wrapper and Interface Generator (SWIG)" ${URL} 3.0.12)

ExternalProject_Add(swig_swig
GIT_REPOSITORY ${URL}
GIT_TAG ${VERSION}
GIT_PROGRESS ON
PATCH_COMMAND ${GIT_EXECUTABLE} apply ${PROJECT_SOURCE_DIR}/patch/add-nodejs8-support-to-swig.patch || true
URL ${URL}
PATCH_COMMAND patch -p1 < ${PROJECT_SOURCE_DIR}/../patch/add-nodejs8-support-to-swig.patch || true
# We should install SWIG to properly access SWIG lib
CONFIGURE_COMMAND ./autogen.sh COMMAND ./configure --without-pcre --prefix=${EP_PREFIX}/src/swig_swig
BUILD_IN_SOURCE ON
Expand Down

0 comments on commit e3f9ab8

Please sign in to comment.