install pkg-config to libdata on FreeBSD #792

pull/795/head
nick black 4 years ago
parent 1792f820e4
commit fa343c92a4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -217,6 +217,9 @@ target_compile_definitions(notcurses-static
PRIVATE PRIVATE
_GNU_SOURCE _DEFAULT_SOURCE _GNU_SOURCE _DEFAULT_SOURCE
) )
set(PKGCONFIG_DIR "lib/pkgconfig")
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
set(PKGCONFIG_DIR "libdata/pkgconfig")
endif() endif()
# libnotcurses++ # libnotcurses++
@ -577,11 +580,11 @@ configure_file(tools/notcurses.pc.in
configure_file(tools/notcurses++.pc.in configure_file(tools/notcurses++.pc.in
${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc ${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc
@ONLY @ONLY
) )
install(FILES install(FILES
${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc ${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig DESTINATION ${CMAKE_INSTALL_PREFIX}/${PKGCONFIG_DIR}
) )
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
configure_file(tools/version.h.in include/version.h) configure_file(tools/version.h.in include/version.h)
@ -642,7 +645,7 @@ install(FILES
install(FILES install(FILES
${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc ${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig DESTINATION ${CMAKE_INSTALL_PREFIX}/${PKGCONFIG_DIR}
) )
if(${USE_FFMPEG} OR ${USE_OIIO}) if(${USE_FFMPEG} OR ${USE_OIIO})

Loading…
Cancel
Save