diff options
| author | Ahmad Fatoum <[email protected]> | 2018-02-11 20:00:04 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-02-11 20:10:50 +0100 |
| commit | 1be72a2e72bcae18241d4a6dd6427aeaaf54e4d5 (patch) | |
| tree | 7537f55256f24af7e604cdd05bf4d67d8a3b8cdc /utils.cmake | |
| parent | 09b022305f3fd365d5d0424ff51982bcca5a572f (diff) | |
| download | raylib-1be72a2e72bcae18241d4a6dd6427aeaaf54e4d5.tar.gz raylib-1be72a2e72bcae18241d4a6dd6427aeaaf54e4d5.zip | |
pkg-config: Empty Requires.private on shared-only build
If user doesn't build the static library,
`pkg-config --static --libs raylib` should be equivalent to
`pkg-config --libs raylib`.
Diffstat (limited to 'utils.cmake')
| -rw-r--r-- | utils.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.cmake b/utils.cmake index dd4160d3..2c6a3771 100644 --- a/utils.cmake +++ b/utils.cmake @@ -74,8 +74,8 @@ foreach(L ${LIBS_PRIVATE}) set(LASTDIR ${DIR}) - set(PKG_CONFIG_LIBS_PRIVATE ${PKG_CONFIG_LIBS_PRIVATE} ${DIR_OPT} ${FILE_OPT}) - string (REPLACE ";" " " PKG_CONFIG_LIBS_PRIVATE "${PKG_CONFIG_LIBS_PRIVATE}") + set(__PKG_CONFIG_LIBS_PRIVATE ${__PKG_CONFIG_LIBS_PRIVATE} ${DIR_OPT} ${FILE_OPT}) + string (REPLACE ";" " " __PKG_CONFIG_LIBS_PRIVATE "${__PKG_CONFIG_LIBS_PRIVATE}") endforeach(L) @@ -86,7 +86,7 @@ function(link_libraries_to_executable executable) if (TARGET raylib_shared) target_link_libraries(${executable} raylib_shared) else() - target_link_libraries(${executable} raylib ${PKG_CONFIG_LIBS_PRIVATE}) + target_link_libraries(${executable} raylib ${__PKG_CONFIG_LIBS_PRIVATE}) endif() endfunction() |
