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

Explicitly add BUILD_TESTING CMake option #5627

Merged

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Jul 6, 2019

This way is visible as a variable in the cache that can be set.

theopolis
theopolis previously approved these changes Jul 6, 2019
@@ -17,6 +17,8 @@ option(BUILD_SHARED_LIBS "Whether to build shared libraries (like *.dll or *.so)

option(ADD_HEADERS_AS_SOURCES "Whether to add headers as sources of a target or not. This is needed for some IDEs which wouldn't detect headers properly otherwise")

option(BUILD_TESTING "Whether to enable and build tests or not")
Copy link
Member

Choose a reason for hiding this comment

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

Should this also have a default of OFF?

Copy link
Member Author

@Smjert Smjert Jul 6, 2019

Choose a reason for hiding this comment

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

If the starting value is not specified, the default is OFF.
Or If my first interpretation isn't right, it's normal to keep it off, because it yields to the fastest build for end users and developers.

Copy link
Member

Choose a reason for hiding this comment

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

I like the implicitness explicitness of having a default

Copy link
Member

Choose a reason for hiding this comment

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

I like the implicitness of having a default

Do you mean explicitness?

Copy link
Member

Choose a reason for hiding this comment

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

hahahaha. yes.

Copy link
Member Author

@Smjert Smjert Jul 9, 2019

Choose a reason for hiding this comment

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

I thought it would've been redundant since you don't have multiple defaults to take into account (and this default is sane).
That been said, I'll merge this and do those changes in another PR, where I'm doing some small cleanups to variables.

alessandrogario
alessandrogario previously approved these changes Jul 6, 2019
directionless
directionless previously approved these changes Jul 7, 2019
@@ -17,6 +17,8 @@ option(BUILD_SHARED_LIBS "Whether to build shared libraries (like *.dll or *.so)

option(ADD_HEADERS_AS_SOURCES "Whether to add headers as sources of a target or not. This is needed for some IDEs which wouldn't detect headers properly otherwise")

option(BUILD_TESTING "Whether to enable and build tests or not")
Copy link
Member

Choose a reason for hiding this comment

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

I like the implicitness explicitness of having a default

This way is visible as a variable in the cache that can be set.
@Smjert Smjert force-pushed the stefano/cmake/build-testing-option branch from d3870ab to 828f6c6 Compare July 10, 2019 01:08
@Smjert
Copy link
Member Author

Smjert commented Jul 10, 2019

Rebased onto master.

@alessandrogario alessandrogario merged commit 72c72b7 into osquery:master Jul 10, 2019
@Smjert Smjert mentioned this pull request Aug 30, 2019
@Smjert Smjert deleted the stefano/cmake/build-testing-option branch October 23, 2019 12:53
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

4 participants