Several CMake files and commands feature strongly discouraged uses of CMake : for example, in-source builds and GLOB variables for listing sources.
We should update CMake's usage to modern CMake where possible (for example following those guidelines) ; in the long term, we should try and use CTest and CPack as well.