Skip to content

Backport: CMakeLists.txt: Add option to disable building the test suite

We now support switching the test suite build off using the standard CTest option BUILD_TESTING.

This allows environments where the test compilation fails to skip it in a consistent manner.

This also removes the unconditional call to enable_testing() which the CTest module now does only if BUILD_TESTING is ON.

Co-authored-by: Michal Liszcz liszcz.michal@gmail.com

Merge request reports