Skip to content

Instantly share code, notes, and snippets.

Created June 23, 2013 14:45
Show Gist options
  • Save anonymous/5845275 to your computer and use it in GitHub Desktop.
Save anonymous/5845275 to your computer and use it in GitHub Desktop.
../lib-install-dir-fix.patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ee632d..9de61f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,12 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
enable_testing()
add_subdirectory(tests)
+set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
+set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH
+ "Installation prefix for shared libraries")
+set(VDPAU_MODULE_INSTALL_DIR "${LIB_INSTALL_DIR}/vdpau" CACHE INTERNAL
+ "Installation prefix for vdpau modules")
+
link_directories (
${SOMELIBS_LIBRARY_DIRS}
)
@@ -44,4 +50,4 @@ set_target_properties (vdpau_va_gl
VERSION 1
)
-install (TARGETS vdpau_va_gl DESTINATION lib/vdpau)
+install (TARGETS vdpau_va_gl DESTINATION ${VDPAU_MODULE_INSTALL_DIR})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment