Skip to content

Commit

Permalink
[libjpeg-turbo] disable SIMD optimizations on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixaill committed Mar 14, 2017
1 parent c791d19 commit e315b95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ports/libjpeg-turbo/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,24 @@ else()
set(NOT_BUILD_STATIC OFF)
endif()

if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
set(LIBJPEGTURBO_SIMD -DWITH_SIMD=OFF)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DENABLE_STATIC=${BUILD_STATIC}
-DENABLE_SHARED=${NOT_BUILD_STATIC}
-DWITH_CRT_DLL=ON
-DENABLE_EXECUTABLES=OFF
-DINSTALL_DOCS=OFF
# OPTIONS_RELEASE -DOPTIMIZE=1
${LIBJPEGTURBO_SIMD}
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
)

vcpkg_build_cmake()
vcpkg_install_cmake()

# Rename libraries for static builds
Expand Down

0 comments on commit e315b95

Please sign in to comment.