cpack: Simplify package directory selection logic
1 file changed