paths: improved cmake