Skip to content
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

ConfigPackageLocation is invalid for Windows #36

Open
StefanBruens opened this issue May 19, 2021 · 0 comments
Open

ConfigPackageLocation is invalid for Windows #36

StefanBruens opened this issue May 19, 2021 · 0 comments

Comments

@StefanBruens
Copy link

set(ConfigPackageLocation lib/cmake/${PROJECT_NAME})

This matches the the following template in
https://cmake.org/cmake/help/latest/command/find_package.html#search-procedure
<prefix>/(lib/<arch>|lib*|share)/cmake/<name>*/ (Unix)

but this is not included in the default search paths for Windows. For Windows, either a different location should be set, or both Windows/Unix should use one of the common patterns (W/U):

<prefix>/<name>*/(lib/<arch>|lib*|share)/cmake/<name>*/         (W/U)
<prefix>/<name>*/(lib/<arch>|lib*|share)/<name>*/               (W/U)
<prefix>/<name>*/(lib/<arch>|lib*|share)/<name>*/(cmake|CMake)/ (W/U)
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

No branches or pull requests

1 participant