mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:19:07 +08:00
[tacopie] Fix non-Windows builds
This commit is contained in:
parent
5c8b828e07
commit
f2a8b4f1fb
@ -6,10 +6,6 @@ vcpkg_from_github(
|
|||||||
REF 3.2.0
|
REF 3.2.0
|
||||||
SHA512 079b294b537aaffe3bcf43a485c3be5b15f633c3f7c70140032d60cb010d35b76e76ef4ddd7596f6bfaf3f7edca7cb086c67552efffbf65846e725d7be54ce72
|
SHA512 079b294b537aaffe3bcf43a485c3be5b15f633c3f7c70140032d60cb010d35b76e76ef4ddd7596f6bfaf3f7edca7cb086c67552efffbf65846e725d7be54ce72
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_apply_patches(
|
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
|
||||||
PATCHES
|
PATCHES
|
||||||
${CMAKE_CURRENT_LIST_DIR}/fix-cmakelists.patch
|
${CMAKE_CURRENT_LIST_DIR}/fix-cmakelists.patch
|
||||||
${CMAKE_CURRENT_LIST_DIR}/fix-export.patch
|
${CMAKE_CURRENT_LIST_DIR}/fix-export.patch
|
||||||
@ -21,9 +17,11 @@ else()
|
|||||||
set(MSVC_RUNTIME_LIBRARY_CONFIG "/MT")
|
set(MSVC_RUNTIME_LIBRARY_CONFIG "/MT")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# tacopie forcibly removes "/RTC1" in its cmake file. Because this is an ABI-sensitive flag, we need to re-add it in a form that won't be detected.
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
|
||||||
set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -RTC1")
|
# tacopie forcibly removes "/RTC1" in its cmake file. Because this is an ABI-sensitive flag, we need to re-add it in a form that won't be detected.
|
||||||
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
|
set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -RTC1")
|
||||||
|
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
|
||||||
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
Loading…
Reference in New Issue
Block a user