Fix wrong conditional in CMakeFiles