It would probably be better to remove this guard and just fail at build configuration time. Again, if you're not super comfortable with CMake, I can fix this myself.