File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -1022,15 +1022,6 @@ else()
10221022    add_library (draco::draco ALIAS draco)
10231023
10241024  else ()
1025-     draco_add_library(
1026-       NAME  draco_static
1027-       OUTPUT_NAME  draco
1028-       TYPE  STATIC 
1029-       DEFINES ${draco_defines} 
1030-       INCLUDES ${draco_include_paths} 
1031-       OBJLIB_DEPS ${draco_object_library_deps} 
1032-       LIB_DEPS ${draco_lib_deps} )
1033- 
10341025    if (BUILD_SHARED_LIBS )
10351026      draco_add_library(
10361027        NAME  draco_shared
@@ -1039,10 +1030,19 @@ else()
10391030        TYPE  SHARED
10401031        DEFINES ${draco_defines} 
10411032        INCLUDES ${draco_include_paths} 
1042-         LIB_DEPS draco_static)
1033+         OBJLIB_DEPS ${draco_object_library_deps} 
1034+         LIB_DEPS ${draco_lib_deps} )
10431035      add_library (draco::draco ALIAS draco_shared)
10441036      set_target_properties (draco_shared PROPERTIES EXPORT_NAME draco)
10451037    else ()
1038+       draco_add_library(
1039+         NAME  draco_static
1040+         OUTPUT_NAME  draco
1041+         TYPE  STATIC 
1042+         DEFINES ${draco_defines} 
1043+         INCLUDES ${draco_include_paths} 
1044+         OBJLIB_DEPS ${draco_object_library_deps} 
1045+         LIB_DEPS ${draco_lib_deps} )
10461046      add_library (draco::draco ALIAS draco_static)
10471047      set_target_properties (draco_static PROPERTIES EXPORT_NAME draco)
10481048    endif ()
Original file line number Diff line number Diff line change @@ -65,18 +65,18 @@ macro(draco_setup_install_target)
6565      ARCHIVE DESTINATION  "${libs_path} " 
6666      LIBRARY DESTINATION  "${libs_path} " )
6767  else ()
68-     install (
69-       TARGETS draco_static
70-       EXPORT  dracoExport
71-       DESTINATION  "${libs_path} " )
72- 
7368    if (BUILD_SHARED_LIBS )
7469      install (
7570        TARGETS draco_shared
7671        EXPORT  dracoExport
7772        RUNTIME DESTINATION  "${bin_path} " 
7873        ARCHIVE DESTINATION  "${libs_path} " 
7974        LIBRARY DESTINATION  "${libs_path} " )
75+     else ()
76+       install (
77+         TARGETS draco_static
78+         EXPORT  dracoExport
79+         DESTINATION  "${libs_path} " )
8080    endif ()
8181  endif ()
8282
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments