[CMake] user defined search path for find_package

rainman110.de rainman110.de at googlemail.com
Tue Jul 31 12:25:09 EDT 2012


Hello together,

this is my first post to this mailing list as I am a new cmake user and
trying to learn it. I already posted the message but somehow it was not
accepted by nabble... 

I have a multiplatform project which requires the CURL package. On Linux the
package is found by cmake as it is located in standard paths. On windows it
cannot be found as the headers are in d:\local\include and the libs are in
e.g. d:\local\some-lib-folder. As find_package fails, I want the user to
specify additional lib and include directories in the cmake-gui or in ccmake
(it should not be hardcoded in the CMakeLists.txt).

How can I accomplish this? Probably this question was already answered
several times but I could not find any fitting answer. Thanks in advance!

rainman110 



--
View this message in context: http://cmake.3232098.n2.nabble.com/user-defined-search-path-for-find-package-tp7581039.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list