[CCPPETMR/SIRF] [CMake] Use CMake's FindMatlab.cmake as opposed to our own (#47)

0 views
Skip to first unread message

Kris Thielemans

unread,
Jul 16, 2017, 8:42:06 PM7/16/17
to CCPPETMR/SIRF, Subscribed

The version supplied since CMake 3.3 seems to work fine, so we set this now as minimum CMake version. This should be fine as the SuperBuild needs 3.7 anyway.

Note that it uses Matlab_ROOT_DIR, not MATLAB_ROOT.

Fixes #41


You can view, comment on, or merge this pull request online at:

  https://github.com/CCPPETMR/SIRF/pull/47

Commit Summary

  • [CMake] Use CMake's FindMatlab.cmake as opposed to our own

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Kris Thielemans

unread,
Jul 16, 2017, 8:44:39 PM7/16/17
to CCPPETMR/SIRF, Subscribed

Needs testing on multiple platforms. don't merge yet! Add a comment where tested.

I've tested on CentOS7 (UCL CS system)

Kris Thielemans

unread,
Sep 24, 2017, 12:58:07 PM9/24/17
to CCPPETMR/SIRF, Push

@KrisThielemans pushed 1 commit.

  • b4e0cf7 Merge branch 'master' into FindMatlab


You are receiving this because you are subscribed to this thread.

View it on GitHub or mute the thread.

Kris Thielemans

unread,
Sep 27, 2017, 4:41:30 AM9/27/17
to CCPPETMR/SIRF, Push

@KrisThielemans pushed 1 commit.

  • 81a36b1 Write warning message that finding Matlab message might take a while


You are receiving this because you are subscribed to this thread.

View it on GitHub or mute the thread.

Ben Thomas

unread,
Sep 28, 2017, 5:27:51 PM9/28/17
to CCPPETMR/SIRF, Subscribed

I ran the following (macOS 10.12.6):

git clone https://github.com/CCPPETMR/SIRF-SuperBuild
cd SIRF-SuperBuild/
git checkout FindMatlab
cmake -DSIRF_TAG=FindMatlab -DMatlab_ROOT_DIR=/Applications/MATLAB_R2016b.app
make

This built successfully. However, make -j failed, so maybe there is an issue with dependencies somewhere. I also got errors that pyconfig.h does not exist. I deleted the directory to start afresh but unfortunately sourceforge appears down now. Apologies for being a bit vague.

Kris Thielemans

unread,
Sep 29, 2017, 4:55:44 AM9/29/17
to CCPPETMR/SIRF, Subscribed

thanks Ben. No idea about the make -j. I can't see why this would have happened (certainly not in the PR) nor how to debug the CMake files...

The pyconfig.h problem is because CMake's FindPython stuff is largely broken on Mac. Our wiki says to use

    cmake -DPYTHON_LIBRARY=$(python-config --prefix)/lib/libpython2.7.dylib \
          -DPYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python2.7 .

not sure how that would have to be for Python 3, but I can guess.

Kris Thielemans

unread,
Sep 29, 2017, 7:34:59 AM9/29/17
to CCPPETMR/SIRF, Subscribed

Merged #47.

Reply all
Reply to author
Forward
0 new messages