Remove unnecessary conditional statement in CMakeList.txt