Reverted PRIVATE in target_link_libraries() and clarifications

This commit is contained in:
Pedro López-Cabanillas 2021-07-31 23:16:37 +02:00
parent 64a7787e90
commit f023d7e014
2 changed files with 6 additions and 2 deletions

View file

@ -873,6 +873,10 @@ write_basic_package_version_file(
COMPATIBILITY SameMinorVersion COMPATIBILITY SameMinorVersion
) )
# Here, configure_file() is used instead of the more orthodox macro
# configure_package_config_file() because the latter does not
# support generating a config.cmake file for both the installed
# package and for using the build directory directly.
configure_file(FluidSynthConfig.cmake.in FluidSynthConfig.cmake @ONLY) configure_file(FluidSynthConfig.cmake.in FluidSynthConfig.cmake @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FluidSynthConfig.cmake" install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FluidSynthConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/FluidSynthConfigVersion.cmake" "${CMAKE_CURRENT_BINARY_DIR}/FluidSynthConfigVersion.cmake"

View file

@ -348,7 +348,7 @@ else ( MACOSX_FRAMEWORK )
) )
endif ( MACOSX_FRAMEWORK ) endif ( MACOSX_FRAMEWORK )
target_link_libraries ( libfluidsynth PRIVATE target_link_libraries ( libfluidsynth
${GLIB_LIBRARIES} ${GLIB_LIBRARIES}
${GMODULE_LIBRARIES} ${GMODULE_LIBRARIES}
${LASH_LIBRARIES} ${LASH_LIBRARIES}
@ -391,7 +391,7 @@ if ( FLUID_CPPFLAGS )
PROPERTIES COMPILE_FLAGS ${FLUID_CPPFLAGS} ) PROPERTIES COMPILE_FLAGS ${FLUID_CPPFLAGS} )
endif ( FLUID_CPPFLAGS ) endif ( FLUID_CPPFLAGS )
target_link_libraries ( fluidsynth PRIVATE target_link_libraries ( fluidsynth
libfluidsynth libfluidsynth
${SYSTEMD_LIBRARIES} ${SYSTEMD_LIBRARIES}
${FLUID_LIBS} ${FLUID_LIBS}