aboutsummaryrefslogtreecommitdiff
path: root/ports/libjpeg-turbo/linux-cmake.patch
diff options
context:
space:
mode:
authorWimok Nupphiboon <wimok.mok@gmail.com>2018-03-24 11:53:55 +0700
committerWimok Nupphiboon <wimok.mok@gmail.com>2018-03-24 11:53:55 +0700
commit663be4bbffd435cf5e5fc62a0774c784c10ddc68 (patch)
treed214f24405fa75d4dad9dfb938a04846d2ca6102 /ports/libjpeg-turbo/linux-cmake.patch
parent1e380dde21317e73d1859dad1c64c06eb88cc502 (diff)
parentaa57df6d6ed6d17000522492b66fc93d3f32ab86 (diff)
downloadvcpkg-663be4bbffd435cf5e5fc62a0774c784c10ddc68.tar.gz
vcpkg-663be4bbffd435cf5e5fc62a0774c784c10ddc68.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'ports/libjpeg-turbo/linux-cmake.patch')
-rw-r--r--ports/libjpeg-turbo/linux-cmake.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/libjpeg-turbo/linux-cmake.patch b/ports/libjpeg-turbo/linux-cmake.patch
new file mode 100644
index 000000000..48a04279f
--- /dev/null
+++ b/ports/libjpeg-turbo/linux-cmake.patch
@@ -0,0 +1,26 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c29e604..6e467be 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -29,10 +29,6 @@ pad_number(VERSION_MINOR 3)
+ pad_number(VERSION_REVISION 3)
+ set(LIBJPEG_TURBO_VERSION_NUMBER ${VERSION_MAJOR}${VERSION_MINOR}${VERSION_REVISION})
+
+-if(NOT WIN32)
+- message(FATAL_ERROR "Platform not supported by this build system. Use autotools instead.")
+-endif()
+-
+ string(TIMESTAMP BUILD "%Y%m%d")
+
+ # This does nothing except when using MinGW. CMAKE_BUILD_TYPE has no meaning
+@@ -166,8 +162,10 @@ endif()
+
+ if(64BIT)
+ message(STATUS "64-bit build")
++ add_compile_options(-DSIZEOF_SIZE_T=8)
+ else()
+ message(STATUS "32-bit build")
++ add_compile_options(-DSIZEOF_SIZE_T=4)
+ endif()
+
+ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)