Skip to content

Commit

Permalink
Merge pull request numenta#940 from scottpurdy/swig-cmake
Browse files Browse the repository at this point in the history
Update cmake variable names to be better.
  • Loading branch information
scottpurdy committed Apr 27, 2016
2 parents 2543cd9 + 4d51b25 commit 47d2223
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions external/Swig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
# http://numenta.org/licenses/
# -----------------------------------------------------------------------------

set(swig_download_url
"${REPOSITORY_DIR}/external/common/src/swig-3.0.2.tar.gz")
set(pcre_download_url
"${REPOSITORY_DIR}/external/common/src/pcre-8.37.tar.gz")
set(swig_path "${REPOSITORY_DIR}/external/common/src/swig-3.0.2.tar.gz")
set(pcre_path "${REPOSITORY_DIR}/external/common/src/pcre-8.37.tar.gz")

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_custom_target(Swig)
Expand All @@ -32,11 +30,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
else()
ExternalProject_Add(
Swig
URL ${swig_download_url}
URL ${swig_path}
UPDATE_COMMAND ""
CONFIGURE_COMMAND
mkdir -p ${EP_BASE}/Source/Swig/Tools/ &&
cp ${pcre_download_url} ${EP_BASE}/Build/Swig/ &&
cp ${pcre_path} ${EP_BASE}/Build/Swig/ &&
${EP_BASE}/Source/Swig/Tools/pcre-build.sh &&
${EP_BASE}/Source/Swig/configure --prefix=${EP_BASE}/Install --enable-cpp11-testing
)
Expand Down

0 comments on commit 47d2223

Please sign in to comment.