fixed cmake error-using functions from our own projects