fixed compile bug: wrong order of statements in CMakeLists