From 94483202ec569327bfb5137425b7cc8d20a60e54 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 17 Aug 2017 18:33:15 +0200 Subject: [PATCH] CMake build system: Always use the system libexpat on Linux. --- xs/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/CMakeLists.txt b/xs/CMakeLists.txt index 3e35cd834..bb2ff1aff 100644 --- a/xs/CMakeLists.txt +++ b/xs/CMakeLists.txt @@ -186,7 +186,8 @@ endif () include_directories(${EIGEN3_INCLUDE_DIR}) # Find expat or use bundled version -if (NOT SLIC3R_STATIC) +# Always use the system libexpat on Linux. +if (NOT SLIC3R_STATIC OR CMAKE_SYSTEM_NAME STREQUAL "Linux") find_package(EXPAT) endif () if (NOT EXPAT_FOUND)