segment's intersection on sphere via CMake