diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-09-09 12:33:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 12:33:57 -0700 |
| commit | 7946a1d71ebe6ba837fcc59d5de99f746c37ac3d (patch) | |
| tree | 0f6e235416bad238678b44d7bc624cccc5f093db /ports/tmx/fix-build-error.patch | |
| parent | 645f3168249c5bf3ccf51d6515c0e3cf550589b0 (diff) | |
| download | vcpkg-7946a1d71ebe6ba837fcc59d5de99f746c37ac3d.tar.gz vcpkg-7946a1d71ebe6ba837fcc59d5de99f746c37ac3d.zip | |
[tmx] Fix build failure (#13401)
Diffstat (limited to 'ports/tmx/fix-build-error.patch')
| -rw-r--r-- | ports/tmx/fix-build-error.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/tmx/fix-build-error.patch b/ports/tmx/fix-build-error.patch new file mode 100644 index 000000000..654fb4dba --- /dev/null +++ b/ports/tmx/fix-build-error.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b29edce..48d0553 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -66,8 +66,9 @@ write_basic_package_version_file("tmxConfigVersion.cmake" COMPATIBILITY SameMajo + # Build + #-----------# + +-list(APPEND targets tmx) ++set(targets tmx) + ++if (NOT BUILD_SHARED_LIBS) + add_library(tmx STATIC ${SOURCES}) + set_target_properties(tmx PROPERTIES VERSION ${BUILD_VERSION}) + +@@ -75,8 +76,8 @@ set_property(TARGET tmx + APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES + $<INSTALL_INTERFACE:include>) + +-if(BUILD_SHARED_LIBS) +- list(APPEND targets tmx_shared) ++else() ++ set(targets tmx_shared) + + add_library(tmx_shared SHARED ${SOURCES}) + target_link_libraries(tmx_shared PRIVATE ${libs}) |
