find_program(CONFIG_EXECUTABLE NAMES my-config PATHS
${CONFIG_EXECUTABLE_PATH} NO_DEFAULT_PATH)
Looks good, should work.
Alternately, must I simply set the path to the program using the
following command?
set(CONFIG_EXECUTABLE, ${CONFIG_EXECUTABLE_PATH}/my-config)
You can do that too.
You
On Wednesday 01 September 2010, Nicholas Kinar wrote:
> Hello,
>
> Suppose that I have a program (named "my-config") that is on the *NIX
> system path, and I have another version of the program (also named
> "my-config") in a sub-folder of the HOME directory.
>
> How would I use the find_program(
Hello,
Suppose that I have a program (named "my-config") that is on the *NIX
system path, and I have another version of the program (also named
"my-config") in a sub-folder of the HOME directory.
How would I use the find_program() command to determine if the program
exists, given the search