[WP] Fixed CMakeLists to work from clean build