[CMake] Change library search order

Anatoly Shirokov shirokov_a at mail.ru
Mon Mar 8 16:46:14 EST 2010


Hi Alex!

I would like to link to Platform SDK libraries instead of Visual Studio 
ones. In this case there is no way to specify full path because most of 
platform SDK files are linked implicitly with the lib pragma (#pragma 
comment(lib, 'lib')). Any suggestions?

BR,
Anatoly

Alexander Neundorf ?????:
> On Monday 08 March 2010, Anatoly Shirokov wrote:
>   
>> Hi there!
>>
>> One day I wrote about this problem. I want to change a library search
>> order, but the target_link_libraries command does not allow me specify
>> the search order because there are no BEFORE and AFTER tags. Is there
>> another way to change the search order?
>>     
>
> Why do you want that ?
> If you specify the libraries to link to with their full path this shouldn't be 
> necessary.
>
> Alex
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100309/22c17b42/attachment-0001.htm>


More information about the CMake mailing list