CMake config fix.

Most of the work to disable these tests on specific OS's has been carried out by David. This request fixes a CMake configuration error due to referencing a deleted target from an upper level CMakeLists.txt file.