change default installation directory for cmake files:#1306
change default installation directory for cmake files:#1306BillyONeal merged 1 commit intomicrosoft:masterfrom
Conversation
now the default becomes "{CMAKE_INSTALL_LIBDIR}/cmake/cpprestsdk"
1f21dbc to
1df135f
Compare
|
Is there anything substantial that has changed since #845 which would warrant a change here? I'm concerned that this is a breaking change. |
|
For the Fedora packages [1] we currently use |
|
@c72578 I get that, but what about anyone who is not currently passing that switch and are relying on the current layout? I know absolutely nothing about this pkg-config support stuff, so I would not want to merge this unless there's something substantial that changed since #845 where my predecessor (who understands that area much better than I) rejected an identical change. |
|
@BillyONeal #845 was a mistake on my side, because it was forcing people to add CMAKE_INSTALL_LIBDIR in the export directory, unconditionally. even if this was right, it was a wrong approach, removing the configurability of the full path from maintainer perspective. Now, since the standard cmake approach is to put stuff in cmake/$SOURCE, this pull request changes the default to that, and BTW I can say that Fedora, Debian, Yocto are already using that standard PATH, so with this PR merged we will just drop the need to explictly change the default and carry a patch. |
|
I'm pretty sure nobody will complain about that change, because the current default can't be found via cmake. to test this: cmake .. and then |
|
OK, sounds reasonable. Thanks for your contribution! (And thanks @ras0219-msft for double checking) |
|
Btw please tag me if anybody complains and I'll make sure to find a way that fits everybody's needs |
now the default becomes "{CMAKE_INSTALL_LIBDIR}/cmake/cpprestsdk"
This is a respin of #845