mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Install runtime modules into bin directory
Runtime modules, such as executables and shared libraries should be installed into "bin" instead of "lib".
This commit is contained in:
parent
5ef37e0b63
commit
54a1ccf8ce
|
@ -65,10 +65,16 @@ function(install_module lib)
|
|||
VERSION ${SOVERSION}
|
||||
SOVERSION ${SOVERSION_MAJOR}
|
||||
)
|
||||
install(TARGETS ${lib}_shared DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(TARGETS ${lib}_shared
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
if(ENABLE_STATIC)
|
||||
install(TARGETS ${lib}_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(TARGETS ${lib}_static
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" " " ${lib}_PKGCONFIG_LIBS "${${lib}_PKGCONFIG_LIBS}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user