From 74dbda9eb17bdc712bdc45fb3e188ef3b2143ef6 Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Thu, 2 Apr 2020 08:45:39 -0700 Subject: [PATCH] draco: Add dummy sources to draco, dracodec, and dracoenc. This is a workaround for two issues with CMake's Xcode generator: - Setting the LINK_LANGUAGE property does not work. - Library targets that only combine other object files do not build in Xcode because of some other issue in the generator. They don't fail at build time: Xcode just does not build them. The combined behavior of the two issues forces addition of dummy source files to the listed targets. Fixes issue https://github.com/google/draco/issues/593 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a32b16..2ffe36e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1003,7 +1003,7 @@ else() endif() list(APPEND draco_header_only_targets - draco_compression_attributes_pred_schemes_dec + draco dracodec dracoenc draco_compression_attributes_pred_schemes_dec draco_compression_mesh_traverser draco_dec_config draco_enc_config) # For now, enable deduplication for both encoder and decoder.