mirror of https://github.com/microsoft/vcpkg.git
18 lines
494 B
Diff
18 lines
494 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 90003a8..10632c8 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -368,6 +368,12 @@ function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION)
|
|
|
|
string(REGEX REPLACE "@PACKAGE_VERSION@" "${VERSION}" TEXT ${TEXT})
|
|
|
|
+ if(NOT BUILD_SHARED_LIBS)
|
|
+ if(LIBM_LIBRARY)
|
|
+ string(REPLACE " -lbrotlicommon" " -lbrotlicommon -l${LIBM_LIBRARY}" TEXT ${TEXT})
|
|
+ endif()
|
|
+ endif()
|
|
+
|
|
file(WRITE ${OUTPUT_FILE} ${TEXT})
|
|
endfunction()
|
|
|