aboutsummaryrefslogtreecommitdiff
path: root/ports/libjpeg-turbo/linux-cmake.patch
blob: 48a04279fd2d5a10d279350dad1e793fa21b30fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)