From 35b7bb406f3a096bb02af348b6319510decf8f82 Mon Sep 17 00:00:00 2001 From: stepeos Date: Tue, 16 Sep 2025 09:55:51 +0300 Subject: [PATCH 1/2] Fix #1058 --- cmake/draco_targets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/draco_targets.cmake b/cmake/draco_targets.cmake index c8c79f51..2de07443 100644 --- a/cmake/draco_targets.cmake +++ b/cmake/draco_targets.cmake @@ -162,7 +162,7 @@ macro(draco_add_executable) endif() if(exe_LIB_DEPS) - if(CMAKE_CXX_COMPILER_ID MATCHES "^Clang|^GNU") + if(CMAKE_CXX_COMPILER_ID MATCHES "^Clang|^GNU" AND NOT APPLE) # Third party dependencies can introduce dependencies on system and test # libraries. Since the target created here is an executable, and CMake # does not provide a method of controlling order of link dependencies, From 9e8f5f1986650ad0099054a23d817d95d7f6d9f2 Mon Sep 17 00:00:00 2001 From: stepeos Date: Tue, 16 Sep 2025 10:01:05 +0300 Subject: [PATCH 2/2] fix for windows --- cmake/draco_targets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/draco_targets.cmake b/cmake/draco_targets.cmake index 2de07443..b3311d42 100644 --- a/cmake/draco_targets.cmake +++ b/cmake/draco_targets.cmake @@ -162,7 +162,7 @@ macro(draco_add_executable) endif() if(exe_LIB_DEPS) - if(CMAKE_CXX_COMPILER_ID MATCHES "^Clang|^GNU" AND NOT APPLE) + if(UNIX AND NOT APPLE AND (CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|GNU)$")) # Third party dependencies can introduce dependencies on system and test # libraries. Since the target created here is an executable, and CMake # does not provide a method of controlling order of link dependencies,