pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SFML/SFML/pull/3572

://github.githubassets.com/assets/pull-requests-be6017ec12798e73.css" /> Use default cmake output paths by JonnyPtn · Pull Request #3572 · SFML/SFML · GitHub
Skip to content

Use default cmake output paths - #3572

Open
JonnyPtn wants to merge 3 commits into
SFML:masterfrom
JonnyPtn:runtime_dlls
Open

Use default cmake output paths#3572
JonnyPtn wants to merge 3 commits into
SFML:masterfrom
JonnyPtn:runtime_dlls

Conversation

@JonnyPtn

Copy link
Copy Markdown
Contributor

Overriding the global CMAKE_RUNTIME_OUTPUT_DIRECTORY variable so that every binary goes into the same folder is intrusive, unintuitive, and can cause a variety of unnecessary complications

My understanding is this was only done so that windows dlls can be loaded for the examples/tests, but it's simple enough to do that in a target and platform specific way that leaves the standard output structure untouched.

Had to modify the mesa3d stuff to accommodate this, which also removed the functionality to remove the mesa3d dlls when disabling the option, but given it's just a workaround for CI jobs (where this behaviour would never be used) I think the impact of this is negligible - I could make it work with some more hacks but in my opinion it's not worth it for something that maintaners/developers may only do once in a blue moon (you can just do a clean build instead when disabling the option)

A big motivation for this is mobile/console ports, where the output is often more than just a simple binary, and involves specific folder structures that are difficult (or impossible) to manage when every target is trying to work with the same output folder

@JonnyPtn

Copy link
Copy Markdown
Contributor Author

Test failure is a good example of the issues sharing an output directory can cause - As the tests still share an output directory (by virtue of being in the same CMakeLists) there's a race condition as each target tries to update files in the output folder when building in parallel

Seems like they should just use separate cmakelists as we do in the rest of the project (and is generally good practice) - Have made that change in #3573

@JonnyPtn

Copy link
Copy Markdown
Contributor Author

#2745 is another issue caused by this setting, and would be superseded by this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy