-
Notifications
You must be signed in to change notification settings - Fork 81
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
Update install-rules.cmake #74
Changes from 6 commits
3da0753
b68493b
4f5a537
1e79813
47e7854
1dc06d4
f338e0e
bbf2b2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{% if not exe %}if(PROJECT_IS_TOP_LEVEL) | ||
set(CMAKE_INSTALL_INCLUDEDIR include/{= name =} CACHE PATH "") | ||
# CMAKE_INSTALL_INCLUDEDIR is nested in one more ${PROJECT_VERSION} directory to prevent inclusion of all other headers in the install prefix directory. | ||
# See https://github.com/friendlyanon/cmake-init/issues/43 for more info | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Besides not keeping the 80 column limit and the period at the end, I also don't feel okay about a link back to this project. The idea of cmake-init is that it generates projects that - in a perfect world - everyone would write to begin with, so links back feel icky to me. Something more generic about the purpose of avoiding indirect inclusion of other projects in a shared prefix would fit better. |
||
set(CMAKE_INSTALL_INCLUDEDIR "include/{= name =}-${PROJECT_VERSION}" CACHE PATH "") | ||
endif(){% if header %} | ||
|
||
# Project is configured with no languages, so tell GNUInstallDirs the lib dir | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Officially"
vcpkg
is used like a regular word in its docs, so it shouldn't be all caps.The additional directory in the include path also affects every other form of packaging, there is no need to make it vcpkg specific. Something like a "Note to packagers" section with cautioning them to review the usage of
CMAKE_INSTALL_INCLUDEDIR
. This should also be guarded with{% if not exe %}
.