[CMake] Add search paths for FIND_PACKAGE ?

Brandon Van Every bvanevery at gmail.com
Tue Nov 20 15:32:32 EST 2007


On Nov 20, 2007 4:34 AM, Dizzy <dizzy at roedu.net> wrote:
>
> Yes, that is bad practice IMO. FIND_PATH() should look just for the file in
> some default locations it is known to be on many platforms (including
> registry settings on Windows if there are install packages that installs and
> registers locations) but should not assume there is always the "curl"
> directory.

Yes it should.  #include "curl/curl.h" is standard usage as per the curl docs.
http://curl.haxx.se/libcurl/c/curl_version_info.html
Please don't assume that infinite flexibility is how all software
packages do things.  Quite a lot of software packages have standard
directory conventions for #include files.


Cheers,
Brandon Van Every


More information about the CMake mailing list