-
Notifications
You must be signed in to change notification settings - Fork 127
Fix CMake warnings + drop old style export of library #46
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
Changes from 2 commits
607bb24
ff86021
b46b05e
9b814e9
1445324
c32fc58
c745754
dc84f14
b0d157d
4b14e05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,4 +24,3 @@ set( ELASTIX_HELP_DIR @ELASTIX_HELP_DIR@ ) | |
|
|
||
| # Maintain backwards compatibility by also exporting old-style target information | ||
| set( ELASTIX_ALL_COMPONENT_LIBS @AllComponentLibs@ ) | ||
|
||
| set( elxLIBRARY_DEPENDS_FILE @elxLIBRARY_DEPENDS_FILE@ ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,13 +14,8 @@ include_directories( ${ELASTIX_INCLUDE_DIRS} ) | |
| link_directories( ${ELASTIX_LIBRARY_DIRS} ) | ||
|
|
||
| # If Elastix_FOUND is set, this file is included via find_package() which provides | ||
| # ELASTIX_CONFIG_TARGETS_FILE and elxLIBRARY_DEPENDS_FILE. Guarding the following | ||
| # include statements allow users to include this file directly for backwards | ||
| # compatibility. | ||
| # ELASTIX_CONFIG_TARGETS_FILE. | ||
| if( Elastix_FOUND ) | ||
|
||
| # This file was found by find_package | ||
| include( ${ELASTIX_CONFIG_TARGETS_FILE} ) | ||
| else() | ||
| # Include linking dependency info for backwards compatibility | ||
| include( ${elxLIBRARY_DEPENDS_FILE} ) | ||
| endif() | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this strictly necessary? If so, fine, if not, it might be annoying to users to work around.