ad-freiburg / pfaedle

Precise map-matching for public transit feeds. Generates high-quality GTFS shapes from OSM data.
GNU General Public License v3.0
206 stars 29 forks source link

CMakeLists.txt: download submodules if needed #12

Closed Benitoite closed 4 years ago

Benitoite commented 4 years ago

Download git submodules if the CMakeLists.txt files for the configparser or cppgtfs directories are not present.

cf. https://stackoverflow.com/questions/60126203/how-do-i-get-cmake-to-find-openmp-c-openmp-cxx-etc/60136444#60136444

patrickbr commented 4 years ago

Thanks for the PR! Could you maybe change the if clauses to check for the existence of the .git folder in the submodule directory? At the moment, the code will break as soon as a filename will change and/or CMakeList.txt is removed (which may happen if the submodule is transformed into a head-only library).

Benitoite commented 4 years ago

@patrickbr no prob!

patrickbr commented 4 years ago

Thanks!