Skip to content

Commit

Permalink
fix: add prefix where needed and use -l to link against lib
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Aug 26, 2022
1 parent 5c341b6 commit c555112
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions cmake/ConfigFiles.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ function(_module_pkgconfig_files)
set(target_debug_postfix "")
endif()
endif()
if(${CRYPTOPP_BUILD_SHARED})
set(MODULE_LINK_LIBS "-lcryptopp${target_debug_postfix}")
else()
set(MODULE_LINK_LIBS "cryptopp${target_debug_postfix}.lib")
endif()
set(MODULE_LINK_LIBS "-lcryptopp${target_debug_postfix}")

configure_file(config.pc.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE_PKGCONFIG_FILE} @ONLY)
Expand Down
6 changes: 3 additions & 3 deletions cryptopp/config.pc.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Crypto++ package configuration file

prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_LIBDIR@
includedir=@CMAKE_INSTALL_INCLUDEDIR@
datadir=@CMAKE_INSTALL_DATAROOTDIR@/cryptopp
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
datadir=${prefix}/@CMAKE_INSTALL_DATAROOTDIR@/cryptopp

Name: Crypto++
URL: https://cryptopp.com/
Expand Down

0 comments on commit c555112

Please sign in to comment.