| 1 |
From: Alexandre Detiste <[email protected]> |
| 2 |
Forwarded: https://github.com/petitlapin/Li-Ri/issues/46 |
| 3 |
|
| 4 |
--- a/CMakeLists.txt |
| 5 |
+++ b/CMakeLists.txt |
| 6 |
@@ -36,7 +36,7 @@ |
| 7 |
|
| 8 |
option (USE_SYSTEM_SIMPLEINI "Use system SimpleIni instead of FetchContent" OFF) |
| 9 |
if(USE_SYSTEM_SIMPLEINI) |
| 10 |
|
| 11 |
+ pkg_check_modules(SimpleIni REQUIRED simpleini) |
| 12 |
else() |
| 13 |
include(FetchContent) |
| 14 |
FetchContent_Declare(simpleini |
| 15 |
@@ -86,7 +86,7 @@ |
| 16 |
target_link_libraries(${LIRI_EXECUTABLE_NAME} PRIVATE ${SDL2_LINK_LIBRARIES}) |
| 17 |
endif() |
| 18 |
|
| 19 |
|
| 20 |
+target_link_libraries(${LIRI_EXECUTABLE_NAME} PUBLIC simpleini) |
| 21 |
|
| 22 |
|
| 23 |
include(GNUInstallDirs) |
| 24 |
--- a/src/config.h.in |
| 25 |
+++ b/src/config.h.in |
| 26 |
@@ -16,4 +16,10 @@ |
| 27 |
/* Folder where data is installed */ |
| 28 |
#define LIRI_DATA_DIR "@LIRI_DATA_DIR@" |
| 29 |
|
| 30 |
+// I don't know how to use CMake |
| 31 |
+// https://sources.debian.org/src/libsimpleini/4.20%2Bdfsg-1/debian/copyright/ |
| 32 |
+// libsimpleini is crippled in Debian: |
| 33 |
+// Files-Excluded: ConvertUTF.* |
| 34 |
+#define SI_NO_CONVERSION 1 |
| 35 |
+ |
| 36 |
#endif // LIRI_CONFIG_H |