add the PKG_CONFIG_PATH in CMakeList.txt instead of command line
fix issue