mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
[boost] MinGW build fixes (#11427)
This commit is contained in:
parent
b800df0e3b
commit
cb8a9fe715
@ -1,4 +1,4 @@
|
||||
Source: boost-build
|
||||
Version: 1.73.0
|
||||
Version: 1.73.0-1
|
||||
Homepage: https://github.com/boostorg/build
|
||||
Description: Boost.Build
|
||||
|
@ -4,7 +4,7 @@ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" AND NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
||||
return()
|
||||
elseif(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
elseif(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW")
|
||||
return()
|
||||
endif()
|
||||
|
||||
@ -52,8 +52,13 @@ file(WRITE "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" "${_co
|
||||
|
||||
message(STATUS "Bootstrapping...")
|
||||
if(CMAKE_HOST_WIN32)
|
||||
if(VCPKG_TARGET_IS_MINGW)
|
||||
set(TOOLSET mingw)
|
||||
else()
|
||||
set(TOOLSET msvc)
|
||||
endif()
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.bat" msvc
|
||||
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.bat" ${TOOLSET}
|
||||
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
||||
LOGNAME bootstrap-${TARGET_TRIPLET}
|
||||
)
|
||||
|
@ -83,7 +83,7 @@ if(NOT LDLAGS STREQUAL "")
|
||||
endif()
|
||||
|
||||
#set(CXXFLAGS "${CXXFLAGS} <compileflags>-Wno-error=unused-command-line-argument")
|
||||
if(CMAKE_CXX_COMPILER_TARGET)
|
||||
if(CMAKE_CXX_COMPILER_TARGET AND CMAKE_CXX_COMPILE_OPTIONS_TARGET)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(CXXFLAGS "${CXXFLAGS} <compileflags>${CMAKE_CXX_COMPILE_OPTIONS_TARGET}${CMAKE_CXX_COMPILER_TARGET}")
|
||||
else()
|
||||
|
@ -1,2 +1,2 @@
|
||||
Source: boost-modular-build-helper
|
||||
Version: 1.73.0
|
||||
Version: 1.73.0-1
|
||||
|
@ -19,7 +19,7 @@ function(boost_modular_build)
|
||||
# Todo: this serves too similar a purpose as vcpkg_find_acquire_program()
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
||||
set(BOOST_BUILD_PATH "${CURRENT_INSTALLED_DIR}/../x64-linux/tools/boost-build")
|
||||
elseif(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
elseif(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW")
|
||||
get_filename_component(BOOST_BUILD_PATH "${CURRENT_INSTALLED_DIR}/../x86-windows/tools/boost-build" ABSOLUTE)
|
||||
elseif(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" AND NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
||||
get_filename_component(BOOST_BUILD_PATH "${CURRENT_INSTALLED_DIR}/../x86-windows/tools/boost-build" ABSOLUTE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user