Skip to content
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

make install do not install the modified models if cmake is note called in advance #202

Open
GiulioRomualdi opened this issue Dec 11, 2023 · 2 comments

Comments

@GiulioRomualdi
Copy link
Contributor

I noticed that if I don't call cmake . make install does not install the models

cc @traversaro

@Nicogene
Copy link
Member

I noticed that if I don't call cmake . make install does not install the models

cc @traversaro

If I am not mistaken it is not possible to do make without configuring it afterwards. or at least you can but it will do nothing

@traversaro
Copy link
Member

The problem is that all the copy operation from the source to the build directory are done at CMake configure time (i.e. when cmake is called, see

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${BUILD_PREFIX} DESTINATION ${CMAKE_BINARY_DIR})
). To copy files at build time (i.e. when make is called) one should define custom target to do the copy (see for example https://discourse.cmake.org/t/copying-config-specific-paths-at-build-time/4776/4), ideally defining appropriately the file on which the copy depends. I am not sure if the additional complexity at the CMake code level is worth the gain in usability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants