<div dir="ltr">Hi all,<div><br></div><div>I&#39;m trying to set up a static link with CMake 2.8.10.2. A bunch of FIND_PACKAGE()s are called, and they all find the correct static libraries with their full path. They are all put in a list, then I call</div>

<div><br></div><div>TARGET_LINK_LIBRARIES(${MYTARGET} ${LINK_LIST})</div><div><br></div><div>Instead of taking the libraries by their full pathname, e.g.,</div><div><br></div><div>/usr/lib/path/to/libmyfancylib.a</div><div>

<br></div><div>CMake produces something like</div><div><br></div><div>-Wl,-Bstatic -lmyfancylb -Wl,-Bdynamic.</div><div><br></div><div>I understand that this causes all following libraries to be loaded as dynamic libraries (if the two versions exist). This is obviously not what I want.</div>

<div><br></div><div>Any hints on what might be going wrong here? Fixes/workarounds?</div><div><br></div><div>Cheers,</div><div>Nico</div></div>