summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleigh123linux <leigh123linux@googlemail.com>2017-03-15 09:59:36 +0000
committerKarl Schultz <karl@lunarg.com>2017-03-16 16:47:19 -0600
commit010b3dee85c7d41fb3b05411f050074a508be2ab (patch)
treee28f142633d1fa04f861d44732e2a589a20230f0
parentff87628a54a76dd3a1cdbbdddb45d78063fb13b8 (diff)
build: Improve pkg-config to handle 64-bit distros
Fixes #1582 Change-Id: I2f06a7016643f61d7e6341df20f355cb510350ab
-rw-r--r--loader/CMakeLists.txt2
-rw-r--r--loader/vulkan.pc.in6
2 files changed, 4 insertions, 4 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index c784a22e..d15f09cc 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -156,6 +156,6 @@ else()
endforeach()
configure_file("vulkan.pc.in" "vulkan.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/vulkan.pc"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif()
endif()
diff --git a/loader/vulkan.pc.in b/loader/vulkan.pc.in
index b0dacbcd..717aa74e 100644
--- a/loader/vulkan.pc.in
+++ b/loader/vulkan.pc.in
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include/vulkan
+exec_prefix=@CMAKE_INSTALL_PREFIX@
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
+includedir=${prefix}/include
Name: @CMAKE_PROJECT_NAME@
Description: Vulkan Loader