From e0c7224296c5fe6175485a897e7fb6ee1034ff9d Mon Sep 17 00:00:00 2001 From: Orca Date: Tue, 13 Aug 2024 13:20:50 +0300 Subject: [PATCH] Fix CMake when building as dependency When building draco as part of a larger project, draco_features.h gets misplaced (into the main output folder) and failed to be found by draco source file --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7b8f152..268493e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ endif() set(draco_root "${CMAKE_CURRENT_SOURCE_DIR}") set(draco_src_root "${draco_root}/src/draco") -set(draco_build "${CMAKE_BINARY_DIR}") +set(draco_build "${CMAKE_CURRENT_BINARY_DIR}") if("${draco_root}" STREQUAL "${draco_build}") message(