# Prefix for CTest ?

**URL:** https://discourse.cmake.org/t/prefix-for-ctest/1081
**Category:** Usage
**Created:** [April 23, 2020, 6:30am UTC](https://discourse.cmake.org/t/prefix-for-ctest/1081 "2020-04-23T06:30:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![robiwano](https://discourse.cmake.org/user_avatar/discourse.cmake.org/robiwano/32/1027_2.png) [@robiwano](https://discourse.cmake.org/u/robiwano)
#### Post date: [April 23, 2020, 6:30am UTC](https://discourse.cmake.org/t/prefix-for-ctest/1081/1 "2020-04-23T06:30:01Z")

</div>

Hi all, I’m trying to make a test cache script which will cache outputs of tests and return the cached values if nothing has changed.  
Question: Is it possible to prefix the “test executable” in the same manner as with CMAKE\_C\_COMPILER\_LAUNCHER which can be set to “ccache” f.i.?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [April 27, 2020, 1:52pm UTC](https://discourse.cmake.org/t/prefix-for-ctest/1081/2 "2020-04-27T13:52:43Z")

</div>

The `add_test` calls would need to have this already included and have some way for the build to provide that tool (or `find_program` can find it on its own).
