cmake: likewise

pull/187/merge
William Pitcock 2018-06-14 14:45:33 -05:00
parent 782c88ce77
commit 2b5202dd1a
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,8 @@ SET(pkg_config_dir "${libdir}/pkgconfig:${datadir}/pkgconfig" CACHE STRING "spec
SET(PKGCONFIGDIR "${pkg_config_dir}") SET(PKGCONFIGDIR "${pkg_config_dir}")
SET(pkg_default_dir "${PKGCONFIGDIR}") # c'mon, make up your mind SET(pkg_default_dir "${PKGCONFIGDIR}") # c'mon, make up your mind
SET(personality_dir "${libdir}/pkgconfig/personality.d:${datadir}/pkgconfig/personality.d" CACHE STRING "specify the places where personality files will be found")
SET(system_libdir "${libdir}" CACHE STRING "specify the system library directory (default LIBDIR)") SET(system_libdir "${libdir}" CACHE STRING "specify the system library directory (default LIBDIR)")
SET(SYSTEM_LIBDIR "${system_libdir}") SET(SYSTEM_LIBDIR "${system_libdir}")
@ -85,6 +87,7 @@ ELSE()
ENDIF() ENDIF()
INCLUDE_DIRECTORIES(${pkgconf_SOURCE_DIR} ${pkgconf_BINARY_DIR}) INCLUDE_DIRECTORIES(${pkgconf_SOURCE_DIR} ${pkgconf_BINARY_DIR})
ADD_DEFINITIONS(-DPERSONALITY_PATH=\"${personality_dir}\")
ADD_DEFINITIONS(-DPKG_DEFAULT_PATH=\"${pkg_default_dir}\") ADD_DEFINITIONS(-DPKG_DEFAULT_PATH=\"${pkg_default_dir}\")
ADD_DEFINITIONS(-DSYSTEM_INCLUDEDIR=\"${system_includedir}\") ADD_DEFINITIONS(-DSYSTEM_INCLUDEDIR=\"${system_includedir}\")
ADD_DEFINITIONS(-DSYSTEM_LIBDIR=\"${system_libdir}\") ADD_DEFINITIONS(-DSYSTEM_LIBDIR=\"${system_libdir}\")