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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] make remove installation directories optional #11540

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

jrubiogonzalez
Copy link
Member

馃摑 Description
This PR makes removing KratosMultiphysics and libs directory optional. This might be dangerous if some applications get stuck, but on our case as we have plenty of external dll's and several applications this reduces the build time for small changes significantly.

@jrubiogonzalez jrubiogonzalez requested a review from a team as a code owner September 5, 2023 12:01
@jrubiogonzalez jrubiogonzalez added FastPR This Pr is simple and / or has been already tested and the revision should be fast CMake labels Sep 5, 2023
@jrubiogonzalez jrubiogonzalez changed the title make remove installation directories optional [Core] make remove installation directories optional Sep 5, 2023
roigcarlo
roigcarlo previously approved these changes Sep 5, 2023
Copy link
Member

@philbucher philbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use more modern CMake syntax

CMakeLists.txt Outdated Show resolved Hide resolved
@matekelemen
Copy link
Contributor

@jrubiogonzalez just out of curiosity:

  • why does it take so much time to copy the external libs back into the install dir?
    • are you building them directly into the install dir?
    • or do you have to manually copy them there?
  • how many/large external libs and apps are we talking about?
  • can you give me a rough estimate of how much faster the build process is without clearing the install dir first?

Co-authored-by: Philipp Bucher <philipp.bucher@tum.de>
@jrubiogonzalez
Copy link
Member Author

We are compiling around 17 applications total between public and private and adding few extra libraries, including mkl. That sums up about 700Mb in win and far more in linux.

If we add our environment anti-virus that is quite intrusive (specially in windows) we go in a 0 build (no changes at all) in my workstation from 15s to 5s.

Copy link
Member

@philbucher philbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thx!

@jrubiogonzalez jrubiogonzalez merged commit 4614b96 into master Sep 6, 2023
11 checks passed
@jrubiogonzalez jrubiogonzalez deleted the core/make-removal-install-dir-optional branch September 6, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake FastPR This Pr is simple and / or has been already tested and the revision should be fast
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants