mirror of https://github.com/microsoft/vcpkg.git
21 lines
726 B
Diff
21 lines
726 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 319bd3d..118104c 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -187,6 +187,15 @@ else()
|
|
endif()
|
|
|
|
if(NOT BUILD_FRAMEWORK)
|
|
+ foreach(lib IN LISTS CMAKE_CXX_IMPLICIT_LINK_LIBRARIES)
|
|
+ if(lib IN_LIST CMAKE_C_IMPLICIT_LINK_LIBRARIES)
|
|
+ continue()
|
|
+ elseif(EXISTS "${lib}")
|
|
+ string(APPEND PC_LIBS_PRIVATE " ${CMAKE_LINK_LIBRARY_FILE_FLAG}${lib}")
|
|
+ else()
|
|
+ string(APPEND PC_LIBS_PRIVATE " ${CMAKE_LINK_LIBRARY_FLAG}${lib}")
|
|
+ endif()
|
|
+ endforeach()
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libchromaprint.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libchromaprint.pc @ONLY)
|
|
install(
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/libchromaprint.pc
|