Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix CMakeLists.txt install paths#73

Merged
ryanhaining merged 1 commit intoryanhaining:masterryanhaining/cppitertools:masterfrom
strega-nil:fix-cmakelistsCopy head branch name to clipboard
Apr 21, 2020
Merged

Fix CMakeLists.txt install paths#73
ryanhaining merged 1 commit intoryanhaining:masterryanhaining/cppitertools:masterfrom
strega-nil:fix-cmakelistsCopy head branch name to clipboard

Conversation

@strega-nil
Copy link
Contributor

@strega-nil strega-nil commented Apr 20, 2020

The old code defaulted the cmake config install paths to
share/cppitertools/cmake/cppitertools
whereas CMake expects the config install directory to be one of
(simplifying):
share/cmake/cppitertools
share/cppitertools
share/cppitertools/cmake

Unfortunately, the existing code chose to put cppitertools at the end
of the install path unconditionally, and so we're left with either
share/cppitertools, or share/cmake/cppitertools as options.
Since other projects seemed to choose share/${PROJECT_NAME}, I figured
that was a fine option, as long as the default is not broken. Therefore,
this changes the default to
share/cppitertools

Additionally, the old code didn't unconditionally put cppitertools at
the end of the config.version file, and so that was never being picked
up. Since it was unlikely that anyone was depending on the
config.version file being installed in the wrong location, we now
install it at the same place as the config file.

Fixes #72

The old code defaulted the cmake config install paths to
  share/cppitertools/cmake/cppitertools
whereas CMake expects the config install directory to be one of
(simplifying):
  share/cmake/cppitertools
  share/cppitertools
  share/cppitertools/cmake

Unfortunately, the existing code chose to put `cppitertools` at the end
of the install path unconditionally, and so we're left with either
`share/cppitertools`, or `share/cmake/cppitertools` as options.
Since other projects seemed to choose `share/${PROJECT_NAME}`, I figured
that was a fine option, as long as the default is not broken. Therefore,
this changes the default to
  share/cppitertools

Additionally, the old code didn't unconditionally put `cppitertools` at
the end of the config.version file, and so that was never being picked
up. Since it was unlikely that anyone was depending on the
config.version file being installed in the wrong location, we now
install it at the same place as the config file.
@strega-nil
Copy link
Contributor Author

@ryanhaining could you rerun the failing test?

@ryanhaining
Copy link
Owner

done. Thank you! I will merge tomorrow

@ryanhaining ryanhaining merged commit 539a5be into ryanhaining:master Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The cmake version config file is not installed alongside the config file

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.