Skip to content

tests/qml/CMakeLists.txt: Don't insist on finding qmltestrunner only at hardcoded guess

Passing NO_DEFAULT_PATH disables many of CMake's mechanisms for making find_program() configurable and accommodating for various systems & setups, reducing it to solely using the provided PATHS guess.

The order in which it will be searched now, as can be looked up at https://cmake.org/cmake/help/latest/command/find_program.html:

  • CMAKE_PROGRAM_PATH cache variable
  • CMAKE_PROGRAM_PATH environment variable
  • PATH environment variable
  • CMAKE_SYSTEN_PROGRAM_PATH internal variable
  • the passed PATHS guess: /usr/lib/*/qt5/bin
Edited by Cosima Neidahl

Merge request reports