forked from Haivision/srt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for CMake Object Library in XCode build.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// DO NOT DELETE | ||
// This file is needed for Xcode to properly handle CMake OBJECT Libraries | ||
// From docs (https://cmake.org/cmake/help/latest/command/add_library.html#object-libraries): | ||
// | ||
// ... Some native build systems (such as Xcode) may not like targets that have only object files, | ||
// so consider adding at least one real source file to any target that references $<TARGET_OBJECTS:objlib>. | ||
|
||
// Just a dummy symbol to avoid compiler warnings | ||
int srt_object_lib_dummy = 0; |