Skip to content

Commit

Permalink
Merge branch 'issue_2195_draco' into integration_1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardTea committed Feb 3, 2021
2 parents cc72be9 + 42d47c7 commit abdcd19
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ ELSE()
)
ENDIF()

ADD_SUBDIRECTORY( "contrib/draco" )
# Don't build or install all of Draco by default
ADD_SUBDIRECTORY( "contrib/draco" EXCLUDE_FROM_ALL )

if(MSVC OR WIN32)
set(draco_LIBRARIES "draco")
Expand All @@ -626,6 +627,12 @@ ELSE()
EXCLUDE_FROM_DEFAULT_BUILD TRUE
)

# Do build the draco shared library
set_target_properties(${draco_LIBRARIES} PROPERTIES
EXCLUDE_FROM_ALL FALSE
EXCLUDE_FROM_DEFAULT_BUILD FALSE
)

TARGET_USE_COMMON_OUTPUT_DIRECTORY(${draco_LIBRARIES})
TARGET_USE_COMMON_OUTPUT_DIRECTORY(draco_encoder)
TARGET_USE_COMMON_OUTPUT_DIRECTORY(draco_decoder)
Expand Down

0 comments on commit abdcd19

Please sign in to comment.