Commit 5abea4c2 authored by Robert Maynard's avatar Robert Maynard

Correct zeroMQ for linux and apple to build from tarball.

The github repo isn't configuring properly for linux and apple, and the
cmake  code in zeroMQ only support windows.

Change-Id: I697d9dde79ec84cdfe72a0893295c7ab751e8803
parent ec5486c1
#we have multiple problems with how zeroMQ builds
#and tries to install itself on unix. All it comes
#down too is poor support with directories with spaces in the name
#to work around the configure issue with a path to the configure script
#with a space, we build in the source directory which has no problems
#with a space in the path.
if("${CMAKE_CURRENT_BINARY_DIR}" MATCHES " ")
#to work around libtool having issues with where the install directory
#has a space in the name we have to do something farm more complex.
#1. we create a temporary folder in the temp directory use mktemp
#2. we create a simlink in that folder to the real install dir
#3. we set zeroMQ install dir to the symlink
execute_process(COMMAND mktemp -d /tmp/zeroMQ.XXXX OUTPUT_VARIABLE tempDir)
string(STRIP ${tempDir} tempDir) #remove all whitespace and newline
set(zero_install_dir "${tempDir}/zero_install_dir")
execute_process(COMMAND ln -s ${install_location} ${zero_install_dir} )
else()
#no spaces so we don't have to create the temp folder
set(zero_install_dir ${install_location})
endif()
add_external_project(zeroMQ
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${zero_install_dir}
--enable-shared
--disable-static
--prefix=<INSTALL_DIR>
BUILD_IN_SOURCE 1
)
ExternalProject_Get_Property(zeroMQ install_dir)
add_project_property(zeroMQ ZeroMQ_ROOT_DIR ${install_dir})
......@@ -138,9 +138,18 @@ add_revision(vxl
URL http://vtk.org/files/support/vxl_r35313.tar.gz
URL_MD5 cb7884a8eb0f816a4bb378dc968c8333)
add_revision(zeroMQ
GIT_REPOSITORY https://github.com/robertmaynard/zeromq2-x
GIT_TAG master)
if (WIN32)
#windows uses the custom cmake build of zeroMQ
add_revision(zeroMQ
GIT_REPOSITORY https://github.com/robertmaynard/zeromq2-x
GIT_TAG master)
else()
#unix and mac uses the stable release
add_revision(zeroMQ
URL "http://download.zeromq.org/zeromq-2.2.0.tar.gz"
URL_MD5 1b11aae09b19d18276d0717b2ea288f6)
endif()
add_revision(remus
GIT_REPOSITORY git://public.kitware.com/Remus.git
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment