superslicer-prerelease/0002-addlib-expat.patch

13 lines
402 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 34fe44a2ef..c0792f5476 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -485,8 +485,6 @@ include_directories(BEFORE SYSTEM ${EIGEN3_INCLUDE_DIR})
# no matter what.
find_package(EXPAT REQUIRED)
-add_library(libexpat INTERFACE)
-
if (TARGET EXPAT::EXPAT )
target_link_libraries(libexpat INTERFACE EXPAT::EXPAT)
elseif(TARGET expat::expat)