-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interface library for project-wide compile options
Previously we were relying on the use of add_compile_options and add_compile_definitions for defining compiler definitions and options for the entire project. This commit replaces that behaviour by defining a new mrtrix::common INTERFACE library that links to all targets in the project (the library is linked to mrtrix::core). This is more idiomatic and prevents the propagation of compiler definitions to targets that do not link to mrtrix::core (useful when compiling MRtrix3 as a subproject of anothe project).
- Loading branch information
Showing
2 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters