diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ModulePackage.cmake | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cmake/ModulePackage.cmake b/cmake/ModulePackage.cmake index f0eef7c9..77911b1d 100644 --- a/cmake/ModulePackage.cmake +++ b/cmake/ModulePackage.cmake | |||
@@ -39,18 +39,6 @@ function(add_module lib) | |||
39 | add_library(${lib}_static STATIC ${ARGN}) | 39 | add_library(${lib}_static STATIC ${ARGN}) |
40 | set_target_properties(${lib}_static PROPERTIES OUTPUT_NAME ${lib}) | 40 | set_target_properties(${lib}_static PROPERTIES OUTPUT_NAME ${lib}) |
41 | endif() | 41 | endif() |
42 | |||
43 | # ${lib}_PKGCONFIG_LIBS is what's added to the Libs: line in ${lib}.pc. It | ||
44 | # needs to contain all the libraries a program using ${lib} should link against | ||
45 | # if it's statically linked. If it's dynamically linked, there is no need to | ||
46 | # explicitly link against all the dependencies, but it doesn't harm much(*) | ||
47 | # either. | ||
48 | # | ||
49 | # (*) It allows client code to use symbols from our dependencies without | ||
50 | # explicitly linking against them. | ||
51 | set(${lib}_PKGCONFIG_LIBS PARENT_SCOPE) | ||
52 | # Requires: in pkg-config file. | ||
53 | set(${lib}_PKGCONFIG_REQUIRES PARENT_SCOPE) | ||
54 | endfunction() | 42 | endfunction() |
55 | 43 | ||
56 | function(install_module lib) | 44 | function(install_module lib) |