forked from microsoft/vcpkg
-
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.
[draco] Revise and fix build (microsoft#35589)
- Loading branch information
1 parent
2968e3b
commit d20250c
Showing
5 changed files
with
38 additions
and
11 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,19 @@ | ||
diff --git a/cmake/draco_install.cmake b/cmake/draco_install.cmake | ||
index 3be1ba1..b91938c 100644 | ||
--- a/cmake/draco_install.cmake | ||
+++ b/cmake/draco_install.cmake | ||
@@ -65,10 +65,14 @@ macro(draco_setup_install_target) | ||
ARCHIVE DESTINATION "${libs_path}" | ||
LIBRARY DESTINATION "${libs_path}") | ||
else() | ||
+ if(BUILD_SHARED_LIBS) | ||
+ set_target_properties(draco_static PROPERTIES EXCLUDE_FROM_ALL 1) | ||
+ else() | ||
install( | ||
TARGETS draco_static | ||
EXPORT dracoExport | ||
DESTINATION "${libs_path}") | ||
+ endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
install( |
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