-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libfreenect2] Fix MACOS build error (#24265)
* [libfreenect2] Fix MACOS build error * update vcpkg.json * update version * Disable build example * update version Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
- Loading branch information
1 parent
ac6a9dc
commit 8223177
Showing
6 changed files
with
52 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index aedc576..4f16abc 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -165,6 +165,8 @@ SET(LIBFREENECT2_DLLS | ||
SET(HAVE_VideoToolbox "no (Apple only)") | ||
IF(APPLE) | ||
FIND_LIBRARY(VIDEOTOOLBOX_LIBRARY VideoToolbox) | ||
+ FIND_LIBRARY(CF_LIBRARY CoreFoundation) | ||
+ FIND_LIBRARY(IOK_LIBRARY IOKit) | ||
|
||
SET(HAVE_VideoToolbox no) | ||
IF(VIDEOTOOLBOX_LIBRARY) | ||
@@ -184,6 +186,8 @@ IF(APPLE) | ||
${COREFOUNDATION_LIBRARY} | ||
${COREMEDIA_LIBRARY} | ||
${COREVIDEO_LIBRARY} | ||
+ ${CF_LIBRARY} | ||
+ ${IOK_LIBRARY} | ||
) | ||
ENDIF(VIDEOTOOLBOX_LIBRARY) | ||
ENDIF(APPLE) |
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
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