[CMake] Confusion regarding usage of find_package and PATHS or HINTS

jmerkow jmerkow at gmail.com
Tue Jun 10 13:09:50 EDT 2014


Is there a generally accepted method to pass extra paths to find_package in
module mode? To get around this,  I have been doing something like this:

set(FOO_EXTRA_PATHS path1 path2)
Find_package(FOO)


In FindFOO.cmake:
...
set(FOO_LIB_POSSIBLE_PATHS ${FOO_EXTRA_PATHS} /path3/)
...
(Use the possible paths in find_library/find_file/etc)


Jameson



--
View this message in context: http://cmake.3232098.n2.nabble.com/Confusion-regarding-usage-of-find-package-and-PATHS-or-HINTS-tp7587611p7587615.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list