Re: [CMake] Using find_program() command to search in only one given directory

2010-09-02 Thread Nicholas Kinar
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

Re: [CMake] Using find_program() command to search in only one given directory

2010-09-02 Thread Alexander Neundorf
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(

[CMake] Using find_program() command to search in only one given directory

2010-09-01 Thread Nicholas Kinar
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