OK, initially I had a separate target before the external project which was itnegrated into catkin_simple and was depending on other packages (e.g. gflags_catkin). I then made a dependency of the external project on that target. Can you give this a try, otherwise we use your solution.