Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

use CTest BUILD_TESTING #92

Merged
merged 1 commit into from
May 2, 2016
Merged

use CTest BUILD_TESTING #92

merged 1 commit into from
May 2, 2016

Conversation

dirk-thomas
Copy link
Contributor

@dirk-thomas dirk-thomas self-assigned this Apr 29, 2016
@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Apr 29, 2016
@@ -93,8 +93,7 @@ def on_build(self, context):
# Calculate any extra cmake args which are not common between cmake build types
extra_cmake_args = []
if should_run_configure:
if context.build_tests:
extra_cmake_args += ["-DAMENT_ENABLE_TESTING=1"]
extra_cmake_args += ["-DBUILD_TESTING=%d" % int(context.build_tests)]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit of a behavior change (previously building with --build-tests and then omitting it would not "undo" the building of tests), but it looks ok to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that before we didn't know when it was intentional and when it was not. I think the new behavior is more consistent - you get what you specify.

@dirk-thomas dirk-thomas merged commit 4c4a0e8 into master May 2, 2016
@dirk-thomas dirk-thomas deleted the ctest_build_testing branch May 2, 2016 17:11
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label May 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants