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

Export CMake targets so build directory can be used directly #100

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

ZedThree
Copy link
Contributor

@ZedThree ZedThree commented Nov 5, 2020

  • Add export(EXPORT ...) to allow the build directory to be used directly by another project. Also necessary to allow FetchContent to work. Might help with CMake FetchContent Module #97
  • Change CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR, necessary for building from another project
  • Add the alias netCDF::netcdf-cxx4, which makes find_package/add_subdirectory both expose the same target name

@WardF
Copy link
Member

WardF commented Jan 5, 2021

Thanks very much!

@brhillman
Copy link

Fixes #101

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.

3 participants