forked from mkxp-z/mkxp-z
-
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.
Fix LZMA compilation error on Windows
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
url = https://github.com/ShiftMediaProject/liblzma | ||
revision = v5.6.3 | ||
depth = 1 | ||
diff_files = lzma.patch |
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,13 @@ | ||
# Fixes a compilation error when compiling liblzma in MSYS2. | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -204,7 +204,6 @@ if((MINGW OR CYGWIN) AND ( | ||
# in PACKAGE_NAME_DEFINITION works with gcc and clang too so we don't need | ||
# to worry how to pass different flags to windres and the C compiler. | ||
# Keep the original PACKAGE_NAME intact for generation of liblzma.pc. | ||
- string(APPEND CMAKE_RC_FLAGS " --use-temp-file") | ||
string(REPLACE " " "\\x20" PACKAGE_NAME_DEFINITION "${PACKAGE_NAME}") | ||
|
||
# Use octal because "Program Files" would become \x20F. |