-
Notifications
You must be signed in to change notification settings - Fork 5
Add CMake option controlling whether tests are built #19
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
Conversation
Pull Request Test Coverage Report for Build 11826402277Details
💛 - Coveralls |
camio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion, otherwise LGTM
CMakeLists.txt
Outdated
| if (UTF_VIEW_BUILD_TESTING) | ||
| enable_testing() | ||
| endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (UTF_VIEW_BUILD_TESTING) | |
| enable_testing() | |
| endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
|
||
| if(BUILD_TESTING) | ||
| if(UTF_VIEW_BUILD_TESTING) | ||
| add_subdirectory(tests/utf_view) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_subdirectory(tests/utf_view) | |
| enable_testing() | |
| add_subdirectory(tests/utf_view) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This commit eliminates our use of BUILD_TESTING and adds a project-specific UTF_VIEW_BUILD_TESTING CMake option. It avoids including CTest and relies on calls to enable_testing(), which is what Beman repositories do to ensure sufficient granularity.
d64b274 to
fd6f756
Compare
This commit eliminates our use of BUILD_TESTING and adds a project-specific UTF_VIEW_BUILD_TESTING CMake option. It avoids including CTest and relies on calls to enable_testing(), which is what Beman repositories do to ensure sufficient granularity.