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 8553357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:37:58+00:00 2026-06-11T14:37:58+00:00

I am now building a dynamic library with CMake, and the problem I now

  • 0

I am now building a dynamic library with CMake, and the problem I now meet with is related to adding files for the library. The structure of my project is as follows:

----src
     |
  thrid_party---boost_1_50_0----boost
     |       ---   |        ----libs
     |       ---   |        ---- | --- filesystem
     |       ---   |        ---- | ---   |  ------src

My CMakeLists.txt file is located in the src directory, and the contents of the file are as follows:

cmake_minimum_required( VERSION 2.6 )
project (temp)
#build the third party library
include_directories( ${irisimp_SOURCE_DIR}/../third_party/boost_1_50_0)
set (boost_path 
${irisimp_SOURCE_DIR}/../third_party/boost_1_50_0/libs)

set (BOOST_LIST
${boost_path}/filesystem/src/codecvt_error_category.cpp 
${boost_path}/filesystem/src/operations.cpp 
${boost_path}/filesystem/src/path.cpp 
${boost_path}/filesystem/src/path_traits.cpp 
${boost_path}/filesystem/src/portability.cpp 
${boost_path}/filesystem/src/unique_path.cpp 
${boost_path}/filesystem/src/utf8_codecvt_facet.cpp 
${boost_path}/filesystem/src/windows_file_codecvt.cpp 
${boost_path}/filesystem/src/windows_file_codecvt.hpp 
)
add_library ( boost SHARED ${BOOST_LIST})

I have no problem with running this script, however, the output Visual Studio 10 project does not contain all the source files in the ${boost_path}/filesystem/srcfolder. In fact only windows_file_codecvt.cpp is kept. Therefore, compiling this project will fail. I was wondering what I should do in order to make sure the Visual Studio 10 project can contain all the source files as instructed in the CMakeLists.txt.Thanks!

  • 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-11T14:37:59+00:00Added an answer on June 11, 2026 at 2:37 pm

    Try putting semicolons in between the paths like so:

    set (BOOST_LIST
      ${boost_path}/filesystem/src/codecvt_error_category.cpp;
      ${boost_path}/filesystem/src/operations.cpp;
      ${boost_path}/filesystem/src/path.cpp;
      ${boost_path}/filesystem/src/path_traits.cpp; 
      ${boost_path}/filesystem/src/portability.cpp;
      ${boost_path}/filesystem/src/unique_path.cpp;
      ${boost_path}/filesystem/src/utf8_codecvt_facet.cpp; 
      ${boost_path}/filesystem/src/windows_file_codecvt.cpp; 
      ${boost_path}/filesystem/src/windows_file_codecvt.hpp;
    )
    

    If this doesn’t work, try

    add_library(boost SHARED
      ${boost_path}/filesystem/src/codecvt_error_category.cpp
      ${boost_path}/filesystem/src/operations.cpp 
      ${boost_path}/filesystem/src/path.cpp 
      ${boost_path}/filesystem/src/path_traits.cpp
      ...
      ${boost_path}/filesystem/src/windows_file_codecvt.hpp)
    

    This might help debug where the problem lies.

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

Sidebar

Related Questions

Now I am building a C++ project with CMake. I find CMake will introduce
I'm building a query with the LINQ dynamic library so I don't know how
Basically I'm wanting to insert a dynamic clock in my project. Right now I'm
I am building a dynamic web project using eclipse j2ee helios 3 version. Everything
hi i am building a dynamic web project in which the welcome page have
I have a self hosted TCP based WCF service. I am now building a
Right now I'm building a simple form and I'm designing it so that if
The application I'm building right now has problems when using HTTP post. When timeout
I have an MVC3/EF4.1 app that I'm building which now works fine on my
im building a forum and now im gonna code the thread page. is there

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.