CMake config fixes about dependencies
Merge branch 'target_lib_fix'