Merge pull request #3967 from bylaws/lib

Windows: Install libraries to CMAKE_INSTALL_LIBDIR
This commit is contained in:
Ryan Houdek 2024-08-16 17:04:52 -07:00 committed by GitHub
commit 21f9841e9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
include(GNUInstallDirs)
add_library(arm64ecfex SHARED
Module.cpp
Module.S
@ -25,5 +27,5 @@ target_link_libraries(arm64ecfex
target_link_options(arm64ecfex PRIVATE -static -nostdlib -nostartfiles -nodefaultlibs -lc++ -lc++abi -lunwind -lclang_rt.builtins-arm64ec)
install(TARGETS arm64ecfex
RUNTIME
DESTINATION lib
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT runtime)

View File

@ -1,3 +1,5 @@
include(GNUInstallDirs)
add_library(wow64fex SHARED
Module.cpp
libwow64fex.def
@ -24,5 +26,5 @@ target_link_libraries(wow64fex
target_link_options(wow64fex PRIVATE -static -nostdlib -nostartfiles -nodefaultlibs -lc++ -lc++abi -lunwind -lclang_rt.builtins-aarch64)
install(TARGETS wow64fex
RUNTIME
DESTINATION lib
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT runtime)