Hi,
Yes it is an issue when the minor version changes. You have to cleanup cmake. I think only removing the CMakeCache.txt would do the job, otherwise delete all files/directories in the build directory.
$ cd rtabmap/build
$ rm CMakeCache.txt
$ cmake ..
$ make -j4
$ make install
cheers