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

Use GNUInstallDirs; Fix install location of CMake config files; include CMakeFindDependencyMacro module #169

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

topazus
Copy link

@topazus topazus commented Dec 7, 2023

@yixuan The PR does the following things:

  • Use GNUInstallDirs. There are some reasonable variables that can be used to faciliate the installation in CMake, instead of the hard-coded path.
  • Fix install location of CMake config files. It should be ${CMAKE_INSTALL_DATADIR}/cmake/Spectra not share/spectra/cmake, in Linux as I know.
  • Add include(CMakeFindDependencyMacro) before using find_dependency. https://cmake.org/cmake/help/latest/module/CMakeFindDependencyMacro.html

@topazus topazus changed the title Use GNUInstallDirs; Fix install location of CMake config files Use GNUInstallDirs; Fix install location of CMake config files; include CMakeFindDependencyMacro module Feb 16, 2024
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.

None yet

1 participant