-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the usage as a Git submodule #61
Comments
That's a good fix, indeed. Just do a PR and I'll merge it.
--
nojhan
…On Thu, Jul 15, 2021 at 4:49 PM Ronaldd Pinho ***@***.***> wrote:
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} 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)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#61>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFSUI4VUZTQZAJNUXWHBDTX3YQJANCNFSM5ANWXVBA>
.
|
Merged, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 withCMAKE_CURRENT_SOURCE_DIR
orPROJECT_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)
The text was updated successfully, but these errors were encountered: