-
Notifications
You must be signed in to change notification settings - Fork 45
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
Header only subpackage error #51
Comments
The plan would be to provide a simple function like:
The option What this function would do is:
Would this satisfy your needs? |
This is a trick to give a fully templated package a library. TriBITS does not yet support packages with header files but no library (see TriBITSPub/TriBITS#51). Now MiniTensor builds and runs the tests.
This is a trick to give a fully templated package a library. TriBITS does not yet support packages with header files but no library (see TriBITSPub/TriBITS#51). Now MiniTensor builds and runs the tests.
This is a trick to give a fully templated package a library. TriBITS does not yet support packages with header files but no library (see TriBITSPub/TriBITS#51). Now MiniTensor builds and runs the tests.
There has been some recent queries about header-only packages and subpackages in TriBITS. The plan described above would work, but it would increase the code and therefore complexity in TriBITS. The better plan would be to refactor TriBITS to use updated CMake features would directly allow that. The newer But the It looks like we need to upgrade the minimum version of CMake to at least 3.0 to allow the usage of ADD_LIBRARY(INTERFACE) as shown at: https://cmake.org/cmake/help/v3.0/command/add_library.html The current workaround is to create a dummy source file and a dummy library. Several examples of that in Trilinos. It would be great if we could upgrade the minimum version of CMake required by Trilinos and TriBITS. To chime in on that, please add a comment to: The more recent, the better. |
Header only subpackages should be supported.
The text was updated successfully, but these errors were encountered: