From 2c24e90c238e5142edb389c2a9735a9c1bae9039 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Fri, 7 Feb 2020 14:55:25 +0100 Subject: [PATCH] Update CMakeLists.txt to rename the static and shared libraries to pugixml Don't call them pugixml-shared or pugixml-static, because this breaks pkgconfig calls and userspace tools. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ff6dce..d02a01b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,8 @@ set_target_properties(pugixml-shared pugixml-static pugixml EXCLUDE_FROM_ALL ON POSITION_INDEPENDENT_CODE ON SOVERSION ${PROJECT_VERSION_MAJOR} - VERSION ${PROJECT_VERSION}) + VERSION ${PROJECT_VERSION} + OUTPUT_NAME pugixml) # XXX: EXCLUDE_FROM_ALL cannot be set via a generator expression! :( if (BUILD_SHARED_AND_STATIC_LIBS)