Add ability to detect BASEDIR from the environment.
Add checks to FindBaselibs.cmake to make sure BASEDIR has the right arch (as defined by uname -s) as this is still a requirement for GEOS run scripts. The code will also try to make a valid BASEDIR. That is, if you pass in /path/to/baselibs, but it sees a /path/to/baselibs/arch/lib exists, it will allow that and try to use it.
Note to @rmontuoro and @weiyuan-jiang . I tried to make sure this only affects the case where BASEDIR is used. I'm pretty sure I didn't screw up the UFS "If no baselibs" path.
This PR does a couple things:
FindBaselibs.cmake
to make sure BASEDIR has the right arch (as defined byuname -s
) as this is still a requirement for GEOS run scripts. The code will also try to make a valid BASEDIR. That is, if you pass in/path/to/baselibs
, but it sees a/path/to/baselibs/arch/lib
exists, it will allow that and try to use it.