-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: switch to target-based definitions (#4193)
We had lots of stray usage of add_defintions, add_compile_options, etc. In modern cmake, this is considered bad form, since it makes subprojects pollute the global option lists. A better way is to add all these to specific targets, so now that's what we do in this PR. This should make all the definitions and options we want to set for compilng OIIO's code not have any interference with subprojects, or with higher-level surrounding projects. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information
Showing
10 changed files
with
230 additions
and
170 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
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
Oops, something went wrong.