Browse Source

cmake: likewise

William Pitcock 1 year ago
parent
commit
2b5202dd1a
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      CMakeLists.txt

+ 3
- 0
CMakeLists.txt View File

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