Allow the usage as a Git submodule
ropinho opened this issue · 2 comments
Hi, I would like to use the ParadisEO as a Git submodule. I know that is possible to do it, but it requires more configuration.
In order to use ParadisEO as a Git submodule, would be interesting change the references to directory names in CMakeLists.txt files. When we try to configure all project with cmake, it tries configure the eo
directory as [my-project-path]/eo
instead some thing as [my-project-path]/external/paradiseo/eo
.
(the path to submodule is external/paradiseo
in this case).
Suggestion
The suggestion is replace the CMAKE_SOURCE_DIR
s with CMAKE_CURRENT_SOURCE_DIR
or PROJECT_SOURCE_DIR
to cmake always configures these directories as relative path to the paradiseo repository path. This way, the following simple CMake code works:
add_subdirectory(external/paradiseo)
Merged, thanks!