Fix CMake warning when testing for LFS