osb/triplets/x64-windows-mixed-md.cmake

23 lines
643 B
CMake
Raw Normal View History

2024-02-20 04:32:35 +00:00
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
2024-03-08 09:09:27 +00:00
if(PORT MATCHES "sdl|discord-")
2024-02-20 04:32:35 +00:00
set(VCPKG_LIBRARY_LINKAGE dynamic)
2024-03-08 09:09:27 +00:00
endif()
if(PORT MATCHES "opus")
string(CONCAT VCPKG_CMAKE_CONFIGURE_OPTIONS
"-DOPUS_INSTALL_PKG_CONFIG_MODULE=OFF"
"-DOPUS_INSTALL_CMAKE_CONFIG_MODULE=OFF"
"-DOPUS_X86_MAY_HAVE_SSE=ON"
"-DOPUS_X86_MAY_HAVE_AVX=ON"
"-DOPUS_X86_MAY_HAVE_SSE4_1=ON"
"-DOPUS_ENABLE_FLOAT_API=ON"
"-DOPUS_FLOAT_APPROX=ON"
"-DOPUS_STACK_PROTECTOR=OFF"
"-DOPUS_NONTHREADSAFE_PSEUDOSTACK=OFF"
"-DOPUS_USE_ALLOCA=ON"
"-DBUILD_TESTING=OFF"
)
2024-02-20 04:32:35 +00:00
endif()