From 6f44bbcc56a477489013bca7244805e371095f4d Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 2 Oct 2015 14:14:09 +0200 Subject: [PATCH] tester: fix detection of sipp which must be detected on target, not on host --- tester/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tester/CMakeLists.txt b/tester/CMakeLists.txt index 9d053e4c0..5f8e7f8c5 100644 --- a/tester/CMakeLists.txt +++ b/tester/CMakeLists.txt @@ -48,12 +48,13 @@ set(SOURCE_FILES video_tester.c ) -find_program(SIPP_PROGRAM NAMES sipp sipp.exe) +#executable must be available on root path, not host one +find_program(SIPP_PROGRAM NAMES sipp sipp.exe ONLY_CMAKE_FIND_ROOT_PATH) if(SIPP_PROGRAM) - add_definitions(-DHAVE_SIPP=1) - add_definitions(-DSIPP_COMMAND="${SIPP_PROGRAM}") + add_definitions(-DHAVE_SIPP=1) + add_definitions(-DSIPP_COMMAND="${SIPP_PROGRAM}") else() - message(WARNING "Could not find sipp!") + message(WARNING "Could not find sipp!") endif() add_definitions(-DBC_CONFIG_FILE="config.h")