Update CMakeLists.txt

fixed logical block