Dear CMake community,<div><br></div><div>firstly, thank you for the extremely useful build tool, it&#39;s saved me a lot of time and effort!</div><div><br></div><div>I&#39;m trying to solve the following problem:</div><div>
<br></div><div>I&#39;d like the user (i.e. non-developer compiling my code) to have the option to specify a location for an external library and *iff* this option is set it should be used as the &#39;top-priority&#39; search location for that library, falling back to all the others if it is not found or not set.  Ideally this option would be set as a variable so that it is visible in e.g. ccmake.</div>
<div><br></div><div>The reason for doing this is that if the user just sets a variable to indicate the library path I would then have to manually check that the library does indeed exist at that path.</div><div><br></div>
<div>Is there a way to do this?</div><div><br></div><div>Many thanks,</div><div>-Martin<br clear="all"><div><br></div>
</div>