Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by John Anderson for How do I check whether I'm using two different version of cmake?

I have a small tool to find all executables of a given name in my path. You can use this to see if there is more than one cmake in your path. The simple code is:

#!/usr/bin/tcshforeach dir ($path)    if (-x $dir/$1) then        echo "$dir/$1"    endifend

Save the above in a file named "every", chmod it to executable. then do "./every cmake".It should list all the cmake executables in your path.


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles