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

  • Home
  • SEARCH
  • 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

I am using CMake to build my project and I have the following line:
I have a project in Visual 2005 generated using CMake, and everytime I press
I'm using CMake for my build system and in the project, we will have
I have been quite successfully using CMake to perform builds using the ExternalProject_Add function,
I have compiled C++ project using cmake utility on Red hat Linux 4.1.2. gcc
gcc 4.4.2 / Visual Studio C++ 2008 I have been using cmake on linux,
I have downloaded mysql-connector-c-6.0.2. I build it using below commands: cmake -G Unix Makefiles
I have tried setting the debug flags using the set command in cmake but
I have an c++ application developed using gcc(4.1) and compiled with CMAKE MakeFiles .
I must integrate some macros in a project which is using a cake-pattern. That

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.