From cb1741de89a3eaf187ee4bbe2abbee3cea939a47 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 20 Jan 2018 21:15:14 +0100 Subject: [PATCH] Add PATHS to find_program(REFLECTION_GENERATOR_EXECUTABLE --- lib/cmake/modules/ReflectionGenerator.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index 6fe226b..330e94f 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -16,7 +16,10 @@ if(REFLECTION_GENERATOR_EXECUTABLE) endif() elseif(CMAKE_CROSSCOMPILING OR NOT TARGET "${DEFAULT_REFLECTION_GENERATOR_EXECUTABLE}") # find native/external "reflective_rapidjson_generator" - find_program(REFLECTION_GENERATOR_EXECUTABLE "${DEFAULT_REFLECTION_GENERATOR_EXECUTABLE}") + find_program(REFLECTION_GENERATOR_EXECUTABLE + "${DEFAULT_REFLECTION_GENERATOR_EXECUTABLE}" + PATHS "/usr/bin" "/bin" + ) else() # use "reflective_rapidjson_generator" target set(REFLECTION_GENERATOR_EXECUTABLE "${DEFAULT_REFLECTION_GENERATOR_EXECUTABLE}")