Re: [CMake] on find_package and building dependencies

2012-01-08 Thread Ryan Lewis
Thanks guys, I discovered this experimentally myself. -rhl On Tue, Jan 3, 2012 at 1:29 PM, Eric Noulard wrote: > 2012/1/3 Alexander Neundorf : >>> you basically want: >>> set(CMAKE_FIND_ROOT_PATH "/you/local/install/dir") >>> before calling find_package(...) >> >> No, please don't. >> CMAKE_FI

[CMake] on find_package and building dependencies

2011-12-29 Thread Ryan Lewis
Hi, yes, this is all that I can't figure out if I type the define without a type, it fails, but I can't figure out this variables type. I tried STRING and FILEPATH and even BOOL. please advice. -rhl On Thu, Dec 29, 2011 at 5:03 PM, Ryan Lewis wrote: > Thanks a bunch, > >

Re: [CMake] on find_package and building dependencies

2011-12-29 Thread Ryan Lewis
: > 2011/12/29 Ryan Lewis : >> Hi, >> >> your suggestion on setting that variable before a find_package() just >> simply _is not_ doing what I expect. I specify my own location of libz >> and it _always_ finds the system wide version. > > Then there must be somethi

[CMake] on find_package and building dependencies

2011-12-28 Thread Ryan Lewis
Hi, I really like CMake's find_package() utility for finding dependencies, but for some projects I have a separate local copy of the installed libraries, and I want to point find_package at a particular directory to find the installed libraries. How can I do this? On that note, I also have some d