Correcting CMakelists error dependencies