Reverse ordering in which dependencies are defined in the CMakeLists file