2020-08-07 04:07:46 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-12-03 01:39:16 +08:00
|
|
|
index 0cdb73b..33a80a7 100644
|
2020-08-07 04:07:46 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-12-03 01:39:16 +08:00
|
|
|
@@ -406,6 +406,13 @@ function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION)
|
2020-08-07 04:07:46 +08:00
|
|
|
|
|
|
|
string(REGEX REPLACE "@PACKAGE_VERSION@" "${VERSION}" TEXT ${TEXT})
|
2020-09-28 08:41:18 +08:00
|
|
|
|
2022-12-03 01:39:16 +08:00
|
|
|
+ string(REPLACE [[ -R${libdir}]] "" TEXT ${TEXT})
|
|
|
|
+ if(NOT BUILD_SHARED_LIBS)
|
|
|
|
+ string(REGEX REPLACE [[( -lbrotli[a-z]*)]] [[\1-static]] TEXT ${TEXT})
|
|
|
|
+ if(LIBM_LIBRARY)
|
|
|
|
+ string(REPLACE " -lbrotlicommon-static" " -lbrotlicommon-static -l${LIBM_LIBRARY}" TEXT ${TEXT})
|
|
|
|
+ endif()
|
|
|
|
+ endif()
|
2020-08-07 04:07:46 +08:00
|
|
|
file(WRITE ${OUTPUT_FILE} ${TEXT})
|
|
|
|
endfunction()
|
|
|
|
|