[FIX] fixed wrong endif in CMakeLists.txt