From: Kyle Edwards <kyle.edwards@kitware.com>
Sent: Monday, June 17, 2019 6:49 PM
To: Osman Zakir; cmake@cmake.org
Subject: Re: [CMake] Specifying name of library file on CMake command line?
 
On Mon, 2019-06-17 at 13:47 +0000, Osman Zakir wrote:
>> I want to know how to specify the name of a library I file I want to
>> link against.  How do I do this?  I wanted to build a library with a
>> static runtime and static libs; it requires linking against a Boost
>> library which I did build with static runtime but when I tried to
>> build it, I had linker errors because the dynamic version of the
>> library was used instead of the static one.  I want to somehow make
>> it use the static one.  So yeah, how do I do this?  Is there a way?

>Are you using the FindBoost module?

>https://cmake.org/cmake/help/v3.14/module/FindBoost.html​

>Kyle

Yes, I'm using that module.  I didn't make any changes to it; it came with the third-party library I'm trying to build.