[libjpeg-turbo] Fix non-windows non-linux

This commit is contained in:
Robert Schumacher 2018-03-13 11:34:59 -07:00
parent 51f93e27f1
commit d8aed01655

View File

@ -13,7 +13,7 @@ vcpkg_apply_patches(
"${CMAKE_CURRENT_LIST_DIR}/linux-cmake.patch"
)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" OR (VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore"))
set(LIBJPEGTURBO_SIMD -DWITH_SIMD=OFF)
else()
set(LIBJPEGTURBO_SIMD -DWITH_SIMD=ON)