Correct cmake issue causing threaded tests to run.