8000 CMAKE_DEBUG_POSTFIX now WIN32 only? · Issue #382 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

CMAKE_DEBUG_POSTFIX now WIN32 only? #382

Closed

Description

@asmaloney

I was surprised when I recently built both debug and release on macOS and got the same file name libminizip.a.

if(WIN32)
    set(CMAKE_DEBUG_POSTFIX "d")

Why is this now WIN32 only?

This was changed in commit c4916c9.

Activity

  1. nmoinvaz commented on Apr 23, 2019

    @nmoinvaz
    Member

    I figured it was only something that WIN32 does or cares about. Shouldn't it be building in separate Debug and Release directories anyways?

  2. asmaloney commented on Apr 23, 2019

    @asmaloney
    ContributorAuthor

    I don't feel super-strongly about it - I can pass it on the command line - I just found it odd based on my experience with other libraries that use cmake.

    Maybe my setup is "abnormal" but I build debug & release in their own directories then install them both to the same lib directory. My application chooses the correct one from there.

    It's also easier to ensure you're linking to the correct build if the name is post-fixed.

  3. nmoinvaz commented on Apr 23, 2019

    @nmoinvaz
    Member

    I think I would be more inclined to remove it entirely. It can still be specified in the command line ie:

    cmake . -DCMAKE_DEBUG_POSTFIX=d
    

    I don't really know how common it is one way or another. I've seen it more so on Windows but then again I develop mostly on Windows.

  4. asmaloney commented on Apr 23, 2019

    @asmaloney
    ContributorAuthor

    Yes it can - that's what I did.

    I just find it useful to have it set by default for all platforms - one less "platform-specific thing".

    I took a quick look through the many 3rd party libs I use and it's use is not as consistent as I thought it was.

    Just to confuse users, one of them even uses:

    set(CMAKE_DEBUG_POSTFIX "-dgb")

    :-)

  5. nmoinvaz commented on Apr 24, 2019

    @nmoinvaz
    Member

    Interesting. Ok, I have removed it, and it can be set via command line. Thanks for bringing it to my attention.

  6. added
    compilation
    fixed
    on Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilationfixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0