forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tinyxml2] Update to 8.0.0; avoid exporting symbols when building sta…
…tic libraries (microsoft#11616) * [tinyxml2] Update to 8.0.0; avoid exporting symbols when building static libraries * [tinyxml2] Clean up files
- Loading branch information
Showing
3 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Source: tinyxml2 | ||
Version: 7.1.0 | ||
Version: 8.0.0 | ||
Homepage: https://github.com/leethomason/tinyxml2 | ||
Description: A simple, small, efficient, C++ XML parser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From f8b048656b9937252ce5fb4ebea9e5df5b203bdb Mon Sep 17 00:00:00 2001 | ||
From: Owen Rudge <[email protected]> | ||
Date: Wed, 27 May 2020 09:40:59 +0100 | ||
Subject: [PATCH] cmake: Don't export symbols if building static library | ||
|
||
--- | ||
CMakeLists.txt | 12 +++++++++--- | ||
1 file changed, 9 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 9f9ab07..67b4f33 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -50,10 +50,16 @@ set(CMAKE_DEBUG_POSTFIX "d") | ||
|
||
add_library(tinyxml2 tinyxml2.cpp tinyxml2.h) | ||
|
||
-set_target_properties(tinyxml2 PROPERTIES | ||
+if(BUILD_SHARED_LIBS) | ||
+ set_target_properties(tinyxml2 PROPERTIES | ||
COMPILE_DEFINITIONS "TINYXML2_EXPORT" | ||
- VERSION "${GENERIC_LIB_VERSION}" | ||
- SOVERSION "${GENERIC_LIB_SOVERSION}") | ||
+ VERSION "${GENERIC_LIB_VERSION}" | ||
+ SOVERSION "${GENERIC_LIB_SOVERSION}") | ||
+else() | ||
+ set_target_properties(tinyxml2 PROPERTIES | ||
+ VERSION "${GENERIC_LIB_VERSION}" | ||
+ SOVERSION "${GENERIC_LIB_SOVERSION}") | ||
+endif() | ||
|
||
target_compile_definitions(tinyxml2 PUBLIC $<$<CONFIG:Debug>:TINYXML2_DEBUG>) | ||
|
||
-- | ||
2.25.1.windows.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters