From af1b224702635ec0c974715ae4b6900f7e6fe2b7 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 19 Mar 2022 14:36:20 -0400 Subject: [PATCH] Avoid double-installing Korman. Don't install any copies of Korman that might be lurking inside the Blender directory. This can easily result in interesting race conditions where we can't predict what exactly will be installed. Worse, if the korman installed to Blender is a Windows directory junction, then CPack will fail with an inscrutable error. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c06f1f8..05d42fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,12 @@ if(korman_INSTALL_BLENDER) "${_Blender_PATH}/" DESTINATION "." COMPONENT "Blender" + FILES_MATCHING + PATTERN "*" + # Don't install any korman stuff in the Blender install (yikes) + PATTERN "korman" EXCLUDE + PATTERN "__pycache__" EXCLUDE + REGEX [[vc[_.]?redist[_.]?x[0-9][0-9].exe]] EXCLUDE ) endif()