Check if installation directory is different from build directory. If not stop the CMake run with an error message.