I&#39;m creating a find_package module for the TBB library, and it has 2 libs: tbb.lib and tbbmalloc.lib. Both of these are part of TBB, and in my TBB_LIBRARIES variable I want to return both of them. However, I can only search for one of them at a time using find_library(). Is there a way to make it search for more than one at once and store the results as a list in &lt;var&gt;?<div>
<br></div><div>Right now as a work around I&#39;m using find_path() on tbb.lib, and then manually appending each filename to that directory and creating my list that way. This is still not good enough because I do not verify if the libraries actually exist.</div>