Skip to content

Commit

Permalink
[libjpeg-turbo] Fix CRT linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Oct 25, 2017
1 parent b71d992 commit d1627a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ports/libjpeg-turbo/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: libjpeg-turbo
Version: 1.5.2-1
Version: 1.5.2-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.
11 changes: 4 additions & 7 deletions ports/libjpeg-turbo/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ vcpkg_find_acquire_program(NASM)
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
set(ENV{PATH} "$ENV{PATH};${NASM_EXE_PATH}")

if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(ENABLE_STATIC OFF)
set(ENABLE_SHARED ON)
else()
set(ENABLE_STATIC ON)
set(ENABLE_SHARED OFF)
endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" WITH_CRT_DLL)

if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
set(LIBJPEGTURBO_SIMD -DWITH_SIMD=OFF)
Expand All @@ -36,6 +32,7 @@ vcpkg_configure_cmake(
-DENABLE_SHARED=${ENABLE_SHARED}
-DENABLE_EXECUTABLES=OFF
-DINSTALL_DOCS=OFF
-DWITH_CRT_DLL=${WITH_CRT_DLL}
${LIBJPEGTURBO_SIMD}
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
)
Expand Down

0 comments on commit d1627a0

Please sign in to comment.