Skip to content

Commit

Permalink
Fix pkgconfig file generation after merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Dec 20, 2021
1 parent cfc5d72 commit d9f95b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -836,11 +836,6 @@ endif ()

generate_pkgconfig_spec(fluidsynth.pc.in ${CMAKE_BINARY_DIR}/fluidsynth.pc libfluidsynth-OBJ)

configure_file ( fluidsynth.pc.in
${CMAKE_BINARY_DIR}/fluidsynth.pc IMMEDIATE @ONLY )
install ( FILES ${CMAKE_BINARY_DIR}/fluidsynth.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )

# Exported targets for cmake: find_package(FluidSynth)
# when installed, use CMAKE_PREFIX_PATH=fluidsynth-prefix;...
# to use the build directory directly set the FluidSynth_DIR variable instead.
Expand Down
2 changes: 2 additions & 0 deletions cmake_admin/PkgConfigHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ macro ( generate_pkgconfig_spec template outfile target )
list ( TRANSFORM LIBS_PRIVATE PREPEND "-l")
list ( JOIN LIBS_PRIVATE " " LIBS_PRIVATE_JOINED )
list ( JOIN LIBS_PRIVATE_WITH_PATH " " LIBS_PRIVATE_WITH_PATH_JOINED )

list ( JOIN PC_REQUIRES_PRIV " " PC_REQUIRES_PRIV_JOINED )

configure_file ( ${template} ${outfile} IMMEDIATE @ONLY)
endif()
Expand Down

0 comments on commit d9f95b7

Please sign in to comment.