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

chore(cmake/modules): avoid useless rebuild #1495

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

deepskyblue86
Copy link
Contributor

Because of https://gitlab.kitware.com/cmake/cmake/-/issues/16419, every
time one compiles, some external projects gets updated causing rebuild.

Set UPDATE_DISCONNECTED on EXTERNALPROJECT_ADD, since we can assume git
tags we're using will not change.

Signed-off-by: deepskyblue86 angelopuglisi86@gmail.com

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If contributing rules or changes to rules, please make sure to also uncomment one of the following line:

/kind rule-update

/kind rule-create

Any specific area of the project related to this PR?
cmake

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area rules

/area tests

/area proposals

What this PR does / why we need it:
Avoid unnecessary rebuild
Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:
No

NONE

Copy link
Member

@leodido leodido left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this!

Left two comments :)

cmake/modules/OpenSSL.cmake Outdated Show resolved Hide resolved
cmake/modules/gRPC.cmake Outdated Show resolved Hide resolved
Because of https://gitlab.kitware.com/cmake/cmake/-/issues/16419, every
time one compiles, some external projects gets updated causing rebuild.

Have EP_UPDATE_DISCONNECTED option (default OFF) to be able to control
that behaviour.

Signed-off-by: Angelo Puglisi <angelopuglisi86@gmail.com>
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
@deepskyblue86
Copy link
Contributor Author

@leodido since ci/circleci: centos7 was failing and this option is mainly for developers, I switched the default to OFF.

@deepskyblue86
Copy link
Contributor Author

@leodido since ci/circleci: centos7 was failing and this option is mainly for developers, I switched the default to OFF.

Now it passed. CMake version maybe? I guess it's fine like that anyway.

Copy link
Contributor

@fntlnz fntlnz left a comment

Choose a reason for hiding this comment

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

@poiana
Copy link

poiana commented Dec 10, 2020

LGTM label has been added.

Git tree hash: 577f416fb8bb254074d9b7a079c2a557b8411c9d

@poiana
Copy link

poiana commented Dec 10, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@leogr
Copy link
Member

leogr commented Dec 10, 2020

/milestone 0.27.0

@poiana poiana added this to the 0.27.0 milestone Dec 10, 2020
@poiana poiana merged commit 9a175cb into falcosecurity:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants