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

Inability to specify linking order for external libraries #405

Closed
brycelelbach opened this issue Jul 10, 2012 · 2 comments
Closed

Inability to specify linking order for external libraries #405

brycelelbach opened this issue Jul 10, 2012 · 2 comments
Milestone

Comments

@brycelelbach
Copy link
Member

[reported by manderson] [Trac time Wed May 9 18:26:59 2012] HPX provides no way to specify the linking order for external libraries. The exodusII libraries (http://sourceforge.net/projects/exodusii) are only static and must be linked last for success. There is no way to specify this. In order to proceed, I have to manually link. What a nuisance!

@brycelelbach
Copy link
Member Author

[comment by blelbach] [Trac time Sun Jun 3 21:45:52 2012] Okay, working on fixing this. However, I should note that exodusii can be built as a shared library using CMake, and the Debian/RPM packages for exodusii provide shared libraries, not static libraries.

@brycelelbach
Copy link
Member Author

[comment by blelbach] [Trac time Mon Jun 4 03:18:25 2012] Okay, just use set_target_properties. For example:

set_target_properties(jacobi_mpi_simple_exe PROPERTIES LINK_FLAGS "${MPI_CXX_LINK_FLAGS} ${OpenMP_CXX_FLAGS}")

You'll want to do something like

set_target_properties(foo_exe PROPERTIES LINK_FLAGS "/path/to/libbar.a")

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

No branches or pull requests

1 participant