I've thoroughly read through the CMake documentation for the 2.8 release and for the life of me I can't seem to get a simple case working for find_library using PATH_SUFFIXES.<div><br></div><div>For instance, I am trying to find the library libiomp5.a located at /opt/intel/Compiler/11.1/072/lib/intel64/libiomp5.a. Though the following command works (in CMake 2.8.2):</div>
<div><br></div><div>find_library(IOMP5_LIB iomp5 PATH /opt/intel/Compiler/11.1/072/lib/intel64)</div><div><br></div><div>the following does _not_ work,</div><div><br></div><div>set(INTEL_ARCH_SUBDIRS lib/em64t lib/intel64)</div>
<div>find_library(IOMP5_LIB iomp5 PATH /opt/intel/Compiler/11.1/072/lib/intel64 PATH_SUFFIXES ${INTEL_ARCH_SUBDIRS})</div><div><br></div><div>and neither does</div><div><br></div><div>set(INTEL_ARCH_SUBDIRS lib/em64t lib/intel64)</div>
<div>find_library(IOMP5_LIB iomp5 PATH /opt/intel/Compiler/11.1/072 PATH_SUFFIXES ${INTEL_ARCH_SUBDIRS})</div><div><br></div><div><br></div><div>Am I missing something about how PATH_SUFFIXES should be used, or is it broken? Any feedback is greatly appreciated.</div>
<div><br></div><div>Jack</div>