You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
nmoinvaz commentedon Apr 23, 2019
I figured it was only something that WIN32 does or cares about. Shouldn't it be building in separate Debug and Release directories anyways?
asmaloney commentedon Apr 23, 2019
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
libdirectory. 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.
nmoinvaz commentedon Apr 23, 2019
I think I would be more inclined to remove it entirely. It can still be specified in the command line ie:
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.
asmaloney commentedon Apr 23, 2019
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:
:-)
Remove CMAKE_DEBUG_POSTFIX from cmake. #382
nmoinvaz commentedon Apr 24, 2019
Interesting. Ok, I have removed it, and it can be set via command line. Thanks for bringing it to my attention.