Skip to content

Allow cli option to specify a directory for the build other than build/ #1137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
connoraird opened this issue May 8, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@connoraird
Copy link

Description

Currently fpm enforces the naming of the output build director to be build. It would be useful to be able specify a different directory for this build dir, such as the -B and --build flags in cmake.

This would be useful if multiple compilers are being tested, to name one example.

Possible Solution

No response

Additional Information

No response

@perazz
Copy link
Member

perazz commented May 9, 2025

Cases were made against relaxing the directory structure constraitns. However, one option wout be to mimic Cargo:

Temporary (per build):

FPM_BUILD_DIR=custom_build_folder fpm build

Manifest:

[build]
target-dir = "custom_build_folder"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants