mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-24 11:49:41 +00:00
[boost] Enable static building
This commit is contained in:
parent
99623d66c8
commit
550881b955
@ -1,3 +1,4 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/boost_1_62_0)
|
||||
|
||||
@ -24,10 +25,21 @@ set(B2_OPTIONS
|
||||
-q
|
||||
--without-python
|
||||
threading=multi
|
||||
link=shared
|
||||
runtime-link=shared
|
||||
--debug-configuration
|
||||
)
|
||||
|
||||
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
||||
list(APPEND B2_OPTIONS runtime-link=shared)
|
||||
elseif()
|
||||
list(APPEND B2_OPTIONS runtime-link=static)
|
||||
endif()
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
list(APPEND B2_OPTIONS link=shared)
|
||||
elseif()
|
||||
list(APPEND B2_OPTIONS link=static)
|
||||
endif()
|
||||
|
||||
if(TRIPLET_SYSTEM_ARCH MATCHES "x64")
|
||||
list(APPEND B2_OPTIONS address-model=64)
|
||||
endif()
|
||||
@ -82,18 +94,26 @@ message(STATUS "Packaging ${TARGET_TRIPLET}-rel")
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage/lib/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||
FILES_MATCHING PATTERN "*.lib")
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage/lib/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage/lib/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
elseif()
|
||||
message(STATUS ${VCPKG_LIBRARY_LINKAGE})
|
||||
endif()
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-rel done")
|
||||
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg")
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage/lib/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||
FILES_MATCHING PATTERN "*.lib")
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage/lib/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage/lib/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
elseif()
|
||||
message(STATUS ${VCPKG_LIBRARY_LINKAGE})
|
||||
endif()
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg done")
|
||||
|
||||
vcpkg_copy_pdbs()
|
Loading…
Reference in New Issue
Block a user