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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:08:38+00:00 2026-05-11T06:08:38+00:00

We are using CMake to manage our builds and have a rather large project

  • 0

We are using CMake to manage our builds and have a rather large project consisting of pretty much everything that is needed to build the software base for our embedded platforms save for the toolchain. When building a CDT project with CMake it puts everything into one large project rather than splitting it into individual projects based on the CMake specification.

Our problem is that we have both C and C++ code in the project and we have different code styles for these languages. I have not been able to find out how to tell Eclipse to select a code style based on the file type rather than the project and this makes it very hard to use Eclipse for us since you have to remember to manually switch the style for the entire project if you want to switch from working on a C- to a C++-project or vice versa.

Is it at all possible to set the code style based on the file type rather than just for an entire project?

  • 1 1 Answer
  • 3 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. 2026-05-11T06:08:39+00:00Added an answer on May 11, 2026 at 6:08 am

    You can make use of the ‘link to folder in the file system’ advanced option of the new folder dialog box.

    Basically create a project build-c, and then create a new folder inside there called build and link to the build source files located elsewhere. Then for the build-c project you can change the code style to something else than the build project.

    If this gets confusing, you can create another project called build-cpp and do the same thing (create a folder called build and link to the actual location of the build source files). Then you can make use of filtering projects by working sets (one working set including the build-c project, and another working set called build-cpp).

    Since the folders in both projects just link to the original location of the build files you don’t have to worry about multiple copies between projects. You would still only be able to check files in from the main build project however. It also still requires the user to manual switch working sets from c to cpp depending on what they’re interested in changing.

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

Sidebar

Related Questions

Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using online interfaces to a version control system is a nice way to have
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using JDeveloper , I started developing a set of web pages for a project
Using C#, I need a class called User that has a username, password, active
We have an ASP.NET application that manages it's own User, Roles and Permission database
There are some build systems that are able to generate platform specific project files
I currently use virtual hosts on my computer so that I can manage multiple
I have a project whose artifacts are two dynamic libraries, let's say libX.dylib and
Using PyObjC , you can use Python to write Cocoa applications for OS X.

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.