Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9127265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:14:38+00:00 2026-06-17T07:14:38+00:00

I am trying to build my project using CMake. Iam also using boost. The

  • 0

I am trying to build my project using CMake. Iam also using boost.
The find package statement in my CMakeLists.txt file is:

find_package(Boost 1.42 REQUIRED COMPONENTS

python

system

filesystem

serialization

thread

program_options

regex

test_exec_monitor
)

The build fails and the error message i get is:
The following Boost libraries could not be found:

      boost_system
      boost_filesystem
      boost_serialization
      boost_thread
      boost_program_options

When i check my lib directories i find that the libraries are by name:
libboost< library_name >-vc100-mt.lib and not by boost_< Library_name >

Infact when i rename a single library in my lib files to fit according the boost_< LibraryName > Prefix, it doesn’t complain for that library.

I see 2 solutions for the same:

1.Make changes in the CMakeLists.txt file so that it searches for libraries with correct Prefix( and suffix ).

2.Others

What could be the best one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:14:39+00:00Added an answer on June 17, 2026 at 7:14 am

    From the FindBoost.cmake

    These last three variables are available also as environment variables:
    Also, note they are completely UPPERCASE, except Boost_DIR.

    Boost_DIR or The preferred installation prefix for searching for
    BOOST_ROOT or BOOSTROOT Boost. Set this if the module has problems finding the proper Boost installation.

    Use these variables to point on folder where your boost libs installed. For example

    cmake .. -DBOOST_ROOT=C:/Boost

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build a project using Boost's Asio and I am having
I am trying to build a project with the allegro-msvc80-4.2.2 pre-built package. I'm using
I'm trying to build a project in a cross-platform manner. I'm using CMake to
I'm trying to build my project using ANT. My project uses ActionbarSherlock, and Roboguice-Sherlock.
I am trying to build my android project using ant in command line mode.
I'm trying to set up Jenkins (v1.47) to build a project using the ClearCase
I'm using SCons to build a project at work, and I'm trying to parse
I'm trying to automate the build of a project in Delphi 2009. I'm using
I am trying to build a big project in Mac OS X with cmake
I am trying to build a project using TFS2010 Build.TFS resides on its own

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.