mirror of
https://github.com/pine64/blisp.git
synced 2024-12-22 06:20:12 +00:00
Use CMAKE_INSTALL_LIBDIR for install destination to respect build forges
CMAKE_INSTALL_LIBDIR should be popualted with either lib or lib64, depending on the architecture. This change makes it so that this flag is respected by blisp and the library, runtime, and archives are installed to the location requested by the build.
This commit is contained in:
parent
f601b6b965
commit
3b47993de7
@ -90,7 +90,11 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
install(TARGETS libblisp libblisp_static DESTINATION lib)
|
||||
install(TARGETS libblisp libblisp_static
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
|
||||
if(BLISP_BUILD_CLI)
|
||||
add_subdirectory(tools/blisp)
|
||||
@ -99,4 +103,4 @@ endif()
|
||||
|
||||
if(COMPILE_TESTS)
|
||||
add_subdirectory(tools/blisp/src/cmd/dfu/tests)
|
||||
endif(COMPILE_TESTS)
|
||||
endif(COMPILE_TESTS)
|
||||
|
Loading…
Reference in New Issue
Block a user