fixup_test_name.cmake 451 B

1234567891011121314
  1. if (__fixup_test_name)
  2. return ()
  3. endif ()
  4. set ( __fixup_test_name YES )
  5. # Work around CMake 3.18.0 change in `add_test()`, before the escaped quotes were necessary,
  6. # beginning with CMake 3.18.0 the escaped double quotes confuse the call
  7. function ( fixup_test_name outvar test )
  8. if (${CMAKE_VERSION} VERSION_LESS "3.18")
  9. set ( "${outvar}" "\"${test}\"" PARENT_SCOPE )
  10. else ()
  11. set ( "${outvar}" "${test}" PARENT_SCOPE )
  12. endif ()
  13. endfunction ()