Skip to content
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

Multi configuration builds don't work #399

Closed
xTachyon opened this issue May 31, 2023 · 2 comments
Closed

Multi configuration builds don't work #399

xTachyon opened this issue May 31, 2023 · 2 comments

Comments

@xTachyon
Copy link

My CMake knowledge is quite limited, so I'm sorry if I misjudged anything here.

When using a build with multiple configurations set, like this:

cmake .. -DCMAKE_CONFIGURATION_TYPES=Debug;Release

This line using the output_dir var seems to be breaking the build. From what I could test, it looks like output_dir var is empty after the generator expr is evaluated, which results in the command cmake -E make_directory to be called without a string, which triggers the help message for that command and a failed build.

It seems weird for me that stuff like <CONFIG:debug> is not triggered at all when it comes with multi config builds; I don't know what other variant could be used.

Am I doing something wrong or is this just not working?

@jschwe
Copy link
Collaborator

jschwe commented May 31, 2023

Are you using a multi config Generator? E.g. Ninja Multiconfig?

@jschwe
Copy link
Collaborator

jschwe commented Jun 1, 2023

I've opened #400 to give users a helpful warning if they have misconfigured CMake by setting CMAKE_CONFIGURATION_TYPES, even though the generator they are using is single-config.

@jschwe jschwe closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants