Boost logo

Boost Users :

From: Osman Zakir (osmanzakir90_at_[hidden])
Date: 2019-06-17 14:10:36


From: Kyle Edwards <kyle.edwards_at_[hidden]>
Sent: Monday, June 17, 2019 6:49 PM
To: Osman Zakir; cmake_at_[hidden]
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%e2%80%8b

>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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net