Skip to content

Premake configurations with spaces does not follow Premake standard #129

@perseoGI

Description

@perseoGI

Greetings from the Conan.io team.
We are trying to add this library to the Conan Center Index, here is the Pull Request.

Currently, we do not have the possibility in our PremakeToolchain to target other configurations but Release or Debug. I'm working on it.
But I found when testing that this project contains configurations with white spaces inside:

configurations { "Debug", "Release", "Debug wxDLL", "Release wxDLL", "Debug DLL", "Release DLL" }

If you check out Premake documentation, you won't find any configuration with spaces in between.

This is not a problem in Windows machines as Visual Studio generator will manage it.
But if there is any plan on adding premake support on OSX/Linx, notice that Make will crash when a space is found in the configuration name.

Example of makefile generated code in macos:

ifeq ($(config),debug_dll)
OBJDIR = obj/Debug DLL/foo

Sadly, Makefile will create two folders, obj/Debug and DLL/foo, and not obj/Debug DLL/foo, so this will result in a compilation crash.

Perhaps I should move this issue to the Premake core itself, but it would be nice if you could consider this behavior and possibly update the naming of the configurations.

Thank you in advance! 🐸

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions