• Brad King's avatar
    Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF" · 70c50aa2
    Brad King authored
    Revert commit v3.8.0-rc1~305^2 (Remove CTestTestfile.cmake when BUILD_TESTING
    is OFF, 2016-11-14) again.  We reverted it once in commit v3.8.0-rc3~22^2
    (Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF", 2017-03-06) but
    it was accidentally restored by commit v3.11.0-rc1~387^2 (server: add
    "ctestInfo" request to get test info, 2017-10-25), perhaps due to conflict
    resolution during rebase.
    
    We cannot remove `CTestTestfile.cmake` when testing is off because it breaks
    projects that never enable testing but create their own `CTestTestfile.cmake`
    manually instead.  Revert the change again and add a test case.
    70c50aa2