diff options
author | fanquake <fanquake@gmail.com> | 2024-01-04 14:40:28 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-01-04 14:40:28 +0000 |
commit | e2cdeb592596432039d21f4c819d45f1e46d65ef (patch) | |
tree | 050af003ad6330259841ce6404f6e4c28a75652e /src/secp256k1/cmake/GeneratePkgConfigFile.cmake | |
parent | 65c05db660b2ca1d0076b0d8573a6760b3228068 (diff) | |
parent | 29fde0223abc706925188014209eba75390a9df8 (diff) | |
download | bitcoin-e2cdeb592596432039d21f4c819d45f1e46d65ef.tar.xz |
Update secp256k1 subtree to latest master
Diffstat (limited to 'src/secp256k1/cmake/GeneratePkgConfigFile.cmake')
-rw-r--r-- | src/secp256k1/cmake/GeneratePkgConfigFile.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/secp256k1/cmake/GeneratePkgConfigFile.cmake b/src/secp256k1/cmake/GeneratePkgConfigFile.cmake new file mode 100644 index 0000000000..9c1d7f1ddd --- /dev/null +++ b/src/secp256k1/cmake/GeneratePkgConfigFile.cmake @@ -0,0 +1,8 @@ +function(generate_pkg_config_file in_file) + set(prefix ${CMAKE_INSTALL_PREFIX}) + set(exec_prefix \${prefix}) + set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR}) + set(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR}) + set(PACKAGE_VERSION ${PROJECT_VERSION}) + configure_file(${in_file} ${PROJECT_NAME}.pc @ONLY) +endfunction() |