aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2022-10-24 19:32:19 -0500
committerBrent Cook <busterb@gmail.com>2022-10-24 19:32:19 -0500
commit1b9ce2dfc06739ae5107ed850b415abeac659e4e (patch)
treeefc0cfdc9923c22fac36b55411ec88eedb992f7c /CMakeLists.txt
parent6419191d820c295055a11fccfe2f1387d6e682f8 (diff)
parentef2d6c70daf540926d2d5fd4d50e2942633ec9bd (diff)
downloadportable-1b9ce2dfc06739ae5107ed850b415abeac659e4e.tar.gz
portable-1b9ce2dfc06739ae5107ed850b415abeac659e4e.tar.bz2
portable-1b9ce2dfc06739ae5107ed850b415abeac659e4e.zip
Land #771, Fix endian detection on macOS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03963a5..68a7c2d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -291,6 +291,11 @@ if(HAVE_ENDIAN_H)
291 add_definitions(-DHAVE_ENDIAN_H) 291 add_definitions(-DHAVE_ENDIAN_H)
292endif() 292endif()
293 293
294check_include_files(machine/endian.h HAVE_MACHINE_ENDIAN_H)
295if(HAVE_MACHINE_ENDIAN_H)
296 add_definitions(-DHAVE_MACHINE_ENDIAN_H)
297endif()
298
294check_include_files(err.h HAVE_ERR_H) 299check_include_files(err.h HAVE_ERR_H)
295if(HAVE_ERR_H) 300if(HAVE_ERR_H)
296 add_definitions(-DHAVE_ERR_H) 301 add_definitions(-DHAVE_ERR_H)