mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[libmysql][chakracore] Add fast fail for uwp
This commit is contained in:
parent
a03df3f433
commit
7221344fd8
@ -1,10 +1,15 @@
|
|||||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
message(STATUS "Warning: Static building not supported yet. Building dynamic.")
|
message(STATUS "Warning: Static building not supported yet. Building dynamic.")
|
||||||
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
||||||
endif()
|
endif()
|
||||||
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||||
message(FATAL_ERROR "Static linking of the CRT is not yet supported.")
|
message(FATAL_ERROR "Static linking of the CRT is not yet supported.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||||
|
message(FATAL_ERROR "UWP is not currently supported.")
|
||||||
|
endif()
|
||||||
|
|
||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
|
@ -2,6 +2,10 @@ if (EXISTS "${CURRENT_INSTALLED_DIR}/include/mysql/mysql.h")
|
|||||||
message(FATAL_ERROR "FATAL ERROR: libmysql and libmariadb are incompatible.")
|
message(FATAL_ERROR "FATAL ERROR: libmysql and libmariadb are incompatible.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||||
|
message(FATAL_ERROR "libmysql cannot currently be cross-compiled for UWP")
|
||||||
|
endif()
|
||||||
|
|
||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
@ -18,6 +22,11 @@ vcpkg_apply_patches(
|
|||||||
${CMAKE_CURRENT_LIST_DIR}/boost_and_build.patch
|
${CMAKE_CURRENT_LIST_DIR}/boost_and_build.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(STACK_DIRECTION)
|
||||||
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||||
|
set(STACK_DIRECTION -DSTACK_DIRECTION=-1)
|
||||||
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
@ -25,6 +34,8 @@ vcpkg_configure_cmake(
|
|||||||
-DWITH_UNIT_TESTS=OFF
|
-DWITH_UNIT_TESTS=OFF
|
||||||
-DENABLED_PROFILING=OFF
|
-DENABLED_PROFILING=OFF
|
||||||
-DWIX_DIR=OFF
|
-DWIX_DIR=OFF
|
||||||
|
-DHAVE_LLVM_LIBCPP_EXITCODE=1
|
||||||
|
${STACK_DIRECTION}
|
||||||
-DWINDOWS_RUNTIME_MD=ON # Note: this disables _replacement_ of /MD with /MT. If /MT is specified, it will be preserved.
|
-DWINDOWS_RUNTIME_MD=ON # Note: this disables _replacement_ of /MD with /MT. If /MT is specified, it will be preserved.
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user