[CMake] Library search path ordering

David Flitney flitney at fmrib.ox.ac.uk
Wed Aug 24 13:07:37 EDT 2005


OS: MacOSX 10.3.9 (Panther)
CMake Version: 2.2-beta

I'm having a problem with -L directives. They are being reordered 
(optimised :-) ?) such that I can't control which gets searched first, 
e.g., say I have a locally built library:

${Project_BINARY_DIR}/lib/libmiscmaths.a

but also there is an older version in /usr/local/maths/lib then I can't 
ensure that my locally built one is linked against.

I've tried:

LINK_DIRECTORIES(${Project_BINARY_DIR}/lib /usr/local/maths/lib)
TARGET_LINK_LIBRARY(Project miscmaths)

but this ordering isn't being obeyed.

-- 
Cheers, Dave

Dave Flitney, IT Manager
Oxford Centre for Functional MRI of the Brain
E:flitney at fmrib.ox.ac.uk W:+44-1865-222713 F:+44-1865-222717
URL: http://www.fmrib.ox.ac.uk/~flitney



More information about the CMake mailing list