2020-08-06 22:07:46 +02:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-09-26 08:28:57 +01:00
|
|
|
index e4c5ecc..0589fc1 100644
|
2020-08-06 22:07:46 +02:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-09-26 08:28:57 +01:00
|
|
|
@@ -348,6 +348,12 @@ function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION)
|
2020-08-06 22:07:46 +02:00
|
|
|
|
|
|
|
string(REGEX REPLACE "@PACKAGE_VERSION@" "${VERSION}" TEXT ${TEXT})
|
2020-09-27 17:41:18 -07:00
|
|
|
|
2022-12-02 18:39:16 +01:00
|
|
|
+ if(NOT BUILD_SHARED_LIBS)
|
|
|
|
+ if(LIBM_LIBRARY)
|
2023-09-26 08:28:57 +01:00
|
|
|
+ string(REPLACE " -lbrotlicommon" " -lbrotlicommon -l${LIBM_LIBRARY}" TEXT ${TEXT})
|
2022-12-02 18:39:16 +01:00
|
|
|
+ endif()
|
|
|
|
+ endif()
|
2023-09-26 08:28:57 +01:00
|
|
|
+
|
2020-08-06 22:07:46 +02:00
|
|
|
file(WRITE ${OUTPUT_FILE} ${TEXT})
|
|
|
|
endfunction()
|
|
|
|
|