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

Fix installed cmake package files #521

Merged

Conversation

DusanJovic-NOAA
Copy link
Contributor

@DusanJovic-NOAA DusanJovic-NOAA commented Sep 25, 2024

This PR fixes two issues in installed cmake package files (See #520)

  1. Add if checks to determine whether to run get_target_property depending on which target is installed (g2c or g2c_static or both)

  2. Add target_include_directories for shared and static targets so that installed config files properly set INTERFACE_INCLUDE_DIRECTORIES for all targets.

Fixes #520

Conditionally run get_target_property depending on whether shared or static
libraries are installed
@edwardhartnett edwardhartnett merged commit 8ce0442 into NOAA-EMC:develop Sep 30, 2024
33 checks passed
@DusanJovic-NOAA DusanJovic-NOAA deleted the fix_cmake_target_include branch September 30, 2024 19:03
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.

Error in installed cmake package files
2 participants