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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:45:00+00:00 2026-05-12T21:45:00+00:00

The short version of my question is how do I change the build order

  • 0

The short version of my question is how do I change the build order of projects in my solution without being forced to set one project as a dependency of the other?

In my solution, I’ve got 2 projects:

1.) An executable written in C
2.) A static library containing unit tests using the CUTest framework.

I’ve got 4 build configurations:

1.) Debug – I want only the exe in debug mode. The static lib project is un-selected so it won’t build.
2.) Release – I want only the exe in release mode. The static lib project is un-selected so it won’t build.
3.) Debug with Unit Tests – Want the static lib built, then the exe since it depends on the lib in this case.
4.) Release with Unit Tests – Ditto #3, just in release.

Because the executable is dependent on other libs and dlls not in the solution, I’ve got all those listed out as additional dependencies in the linker settings. In the unit test build configurations, I’ve got the static lib also included in the executable’s dependency list.

Now here’s the rub. The only way I’ve found so far to change the build order and make sure that the static lib is built before the exe is to right-click on the solution and select build order. In that dialog box, it says that I must use the dependencies tab to change the build order. This makes sense. However, if I mark the executable as depending on the static lib, it automatically adds the static library as a linker dependency of the executable. This is fine for the unit test build configs. In the non unit test build configs, however, it tries to link in the static lib which, if I’ve done a clean before the build, has been deleted and can’t be linked in because I don’t build it in those configs (nor do I want it linked in in those cases).

That being said, is there a way to change the build order without marking dependencies? I’d want to set the build order for the unit test configs to make sure the static lib was built first.

  • 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-05-12T21:45:00+00:00Added an answer on May 12, 2026 at 9:45 pm

    You can disable the automatic inclusion of library dependencies.

    In your exe’s property page:

    Linker -> General -> Link Library Dependencies -> No

    This allows you to specify project dependencies and thus build order without the static library being linked in.

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

Sidebar

Related Questions

SHORT VERSION OF QUESTION: So basically my question is: How can I set the
Short version question : Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers,
The short version of the question - why can't I do this? I'm restricted
The short version of the question: I do: x = y . Then I
I have a short version of the question: I start a thread like that:
This is basically a rails 3 version of this question . Short of parsing
Short Version: I'm looking for a technique to keep nearly-sorted data in nearly-sorted order
Short version of question: see title Long version of question: I've used jquery's show()
Short version of the question: Since I already have TortoiseHg, I right clicked on
Question in short: How tot do this in MVC.NET? Question in long version: Im

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.