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

{cmake} Added missing include for GNUInstallDirs #315

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

adi64
Copy link
Contributor

@adi64 adi64 commented Dec 2, 2024

The definition of E57_INSTALL_CMAKEDIR uses CMAKE_INSTALL_LIBDIR which is set by the GNUInstallDirs module. This module however is not directly included. It is included from googletest, and therefore made transitively available if tests are enabled. If tests are disabled, the module is never loaded, and so CMAKE_INSTALL_LIBDIR is never defined, which leads to an unexpected expansion.
This PR fixes #314 by including the module before using the variable.

@asmaloney asmaloney merged commit 5eba23d into asmaloney:master Dec 2, 2024
8 of 12 checks passed
@adi64 adi64 deleted the patch-1 branch December 2, 2024 13:19
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.

Disabling tests breaks cmake files installation dir
2 participants