mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
[libjpeg-turbo] Enable static build
This commit is contained in:
parent
997ef3d065
commit
bbfe03fc2b
@ -1,3 +1,3 @@
|
||||
Source: libjpeg-turbo
|
||||
Version: 1.4.90-1
|
||||
Version: 1.4.90-2
|
||||
Description: libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems.
|
||||
|
@ -1,6 +1,10 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
message(FATAL_ERROR "Static building not supported yet")
|
||||
set(BUILD_STATIC ON)
|
||||
set(NOT_BUILD_STATIC OFF)
|
||||
else()
|
||||
set(BUILD_STATIC OFF)
|
||||
set(NOT_BUILD_STATIC ON)
|
||||
endif()
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libjpeg-turbo-1.4.90)
|
||||
@ -23,7 +27,8 @@ set(ENV{PATH} "${NASM_EXE_PATH};$ENV{PATH}")
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DENABLE_STATIC=OFF
|
||||
-DENABLE_STATIC=${BUILD_STATIC}
|
||||
-DENABLE_SHARED=${NOT_BUILD_STATIC}
|
||||
-DWITH_CRT_DLL=ON
|
||||
-DENABLE_EXECUTABLES=OFF
|
||||
-DINSTALL_DOCS=OFF
|
||||
|
Loading…
x
Reference in New Issue
Block a user