Skip to content

Commit 44b205e

Browse files
committed
Revert "cmake: configure libsecp256k1.pc during install"
This reverts commit 7106dce. This causes a regression for packaging, as the generated `.pc` file will contain the location that was used to build the package archive.
1 parent 89096c2 commit 44b205e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cmake/GeneratePkgConfigFile.cmake

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
function(generate_pkg_config_file in_file)
2-
set(prefix "@CMAKE_INSTALL_PREFIX@")
2+
set(prefix ${CMAKE_INSTALL_PREFIX})
33
set(exec_prefix \${prefix})
44
set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
55
set(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
66
set(PACKAGE_VERSION ${PROJECT_VERSION})
7-
configure_file(${in_file} ${PROJECT_NAME}.pc.in @ONLY)
8-
install(CODE "configure_file(
9-
\"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc.in\"
10-
\"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc\"
11-
@ONLY)" ALL_COMPONENTS)
7+
configure_file(${in_file} ${PROJECT_NAME}.pc @ONLY)
128
endfunction()

0 commit comments

Comments
 (0)