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 fixes #82

Merged
merged 4 commits into from
Jan 20, 2017
Merged

Cmake fixes #82

merged 4 commits into from
Jan 20, 2017

Conversation

rashadkm
Copy link
Contributor

this pr is built on top of #81 and include some cmake fixes.

Rashad Kanavath added 4 commits December 29, 2016 09:23
This will try to find existing ossim installation and therby linking
all ossim apps with wrong library. The trick is to simply put ossim library
as a dependency to all ossim apps. I had used OSSIM_LIBNAME to allow
changing name of libossim.so (default is ossim)

Two macros LINK_INTERNAL and LINK_EXTERNAL are removed.
As ossim required cmake version 2.8 or higher both macros are simply
calling target_link_libraries from cmake.
@rashadkm
Copy link
Contributor Author

is this need any further fixes before merge?

@gpotts gpotts merged commit 846e450 into ossimlabs:dev Jan 20, 2017
@gpotts
Copy link
Member

gpotts commented Jan 20, 2017 via email

@rashadkm
Copy link
Contributor Author

OSISM_LIBNAME is name of library which was ossim. I don't know if that is needed. But before ther was a LIBNAME which is set to ossim. This can control output library name for others.

IIUC, OSSIM_LIBRARY is full path to libossim file.

In the app directory, it makes sense to make all apps depend on cmake target 'ossim' or whatever with name OSSIM_LIBNAME. This also make sure any change in ossim core will rebuild ossim apps. otherwise one has to manually rebuild all apps after having a update in libossim.so or can get "random" crashes.

If you have any confusion, let me know in which part of cmake changes. I can then comment on it in detail.

@rashadkm
Copy link
Contributor Author

I have a fix for building ossim apps using an existing installation of ossim. If you are okay, I can send another PR.?

@gpotts
Copy link
Member

gpotts commented Jan 20, 2017 via email

@gpotts
Copy link
Member

gpotts commented Jan 20, 2017 via email

@rashadkm
Copy link
Contributor Author

okay. can you ping me when you had done with these tasks. we can then discuss about some issues in cmake.

Good luck.

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

2 participants