SIRF-SuperBuild icon indicating copy to clipboard operation
SIRF-SuperBuild copied to clipboard

prevent in-source build?

Open KrisThielemans opened this issue 7 years ago • 5 comments

The superbuild situation is somewhat confusing if where sources and builds are located. This gets worse if an in-source build is used. I suggest we error out if this is attempted. This can be done like here.

KrisThielemans avatar Aug 10 '18 22:08 KrisThielemans

I think erroring out is definitely a good idea, as it might help out less experienced CMakers

rijobro avatar Aug 13 '18 07:08 rijobro

I believe that at least boost is built in source. Do you really want to error out?

paskino avatar Nov 23 '18 10:11 paskino

we can/should build boost out-of-source as well. from another project, something like this should work

cd $BUILDPATH
$SRCDIR/bootstrap.sh --prefix=$INSTALLDIR
cd $SRCDIR
$BUILDPATH/b2 --build-dir=$BUILDPATH --prefix=$INSTALLDIR install

possibly these lines are overcomplicated, but you get the idea.

KrisThielemans avatar Nov 23 '18 11:11 KrisThielemans

but in any case the suggestion above is for the SuperBuild itself, not for the content.

KrisThielemans avatar Nov 23 '18 11:11 KrisThielemans

Ah, I had totally misunderstood that point. Then I agree.

paskino avatar Nov 23 '18 11:11 paskino