[CMake] Does PATH_SUFFIXES work?

Jack Poulson jack.poulson at gmail.com
Wed Jan 19 00:00:21 EST 2011


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.

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):

find_library(IOMP5_LIB iomp5 PATH /opt/intel/Compiler/11.1/072/lib/intel64)

the following does _not_ work,

set(INTEL_ARCH_SUBDIRS lib/em64t lib/intel64)
find_library(IOMP5_LIB iomp5 PATH /opt/intel/Compiler/11.1/072/lib/intel64
PATH_SUFFIXES ${INTEL_ARCH_SUBDIRS})

and neither does

set(INTEL_ARCH_SUBDIRS lib/em64t lib/intel64)
find_library(IOMP5_LIB iomp5 PATH /opt/intel/Compiler/11.1/072 PATH_SUFFIXES
${INTEL_ARCH_SUBDIRS})


Am I missing something about how PATH_SUFFIXES should be used, or is it
broken? Any feedback is greatly appreciated.

Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110118/99a74acd/attachment.htm>


More information about the CMake mailing list