install-library.patch 823 B

1234567891011121314151617181920212223
  1. diff -Nur old/src/CMakeLists.txt new/src/CMakeLists.txt
  2. --- old/src/CMakeLists.txt 2021-03-28 20:16:17.261479252 +0200
  3. +++ new/src/CMakeLists.txt 2021-03-28 20:19:31.379804791 +0200
  4. @@ -68,6 +68,9 @@
  5. # Build the library.
  6. if(BUILD_SHARED)
  7. add_library(${LIBNAME} SHARED ${SOURCE_FILES})
  8. + set_target_properties(${LIBNAME} PROPERTIES
  9. + VERSION ${OPENVR_VERSION})
  10. +
  11. elseif(BUILD_FRAMEWORK)
  12. set( LIBNAME "OpenVR" )
  13. add_library( ${LIBNAME}
  14. @@ -101,7 +104,7 @@
  15. target_link_libraries(${LIBNAME} ${EXTRA_LIBS} ${CMAKE_DL_LIBS})
  16. target_include_directories(${LIBNAME} PUBLIC ${OPENVR_HEADER_DIR})
  17. -install(TARGETS ${LIBNAME} DESTINATION lib)
  18. +install(TARGETS ${LIBNAME} DESTINATION lib${LIB_SUFFIX})
  19. install(FILES ${PUBLIC_HEADER_FILES} DESTINATION include/openvr)
  20. # Generate a .pc file for linux environments