Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to generate .vcxproj from .pro with object_parallel_to_source like behaviour
QtWS25 Last Chance

How to generate .vcxproj from .pro with object_parallel_to_source like behaviour

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spynacker
    wrote on last edited by
    #1

    I have a project with multiple source files that have the same name but reside in differing folders. When using Makefiles "CONFIG+=object_parallel_to_source" ensures that there is no clash of the object files during compilation/linking. However, when building a .vcxproj file via "qmake -tp vc proj.pro" this option is not regarded. Rather, all object files are stored in the top directory of the binary output directory.

    This means I have to add the correct settings at least for each conflicting file and each setup (release/debug), which is already annoying when done once. However, as I am constantly adding new files (while developing under linux) and then ensuring compatibility to Windows/MSVC I have to do this step at least once per week.

    Is there another option to get qmake to generate the right paths in the .vcxproj file?
    I already tried "CONFIG-=flat", which only changed the filters (the way those files are listed inside Visual Studio's project explorer), but not where the output files are stored.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved