Revision: 75716
http://sourceforge.net/p/brlcad/code/75716
Author: starseeker
Date: 2020-05-07 01:19:31 +0000 (Thu, 07 May 2020)
Log Message:
-----------
OpenBSD needs __WORD_SIZE defined.
Modified Paths:
--------------
brlcad/trunk/CMakeLists.txt
Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2020-05-07 01:15:43 UTC (rev 75715)
+++ brlcad/trunk/CMakeLists.txt 2020-05-07 01:19:31 UTC (rev 75716)
@@ -1104,6 +1104,14 @@
CONFIG_H_APPEND(BRLCAD "#define SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P}\n")
+# OpenBSD doesn't define __WORD_SIZE
+if(${CMAKE_WORD_SIZE} MATCHES "32BIT")
+ CONFIG_H_APPEND(BRLCAD "#ifndef __WORD_SIZE\n# define __WORD_SIZE
32\n#endif\n")
+endif(${CMAKE_WORD_SIZE} MATCHES "32BIT")
+if(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ CONFIG_H_APPEND(BRLCAD "#ifndef __WORD_SIZE\n# define __WORD_SIZE
64\n#endif\n")
+endif(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+
# Based on what we are doing, we may need to constrain our search paths
#
# NOTE: Ideally we would set a matching property for 32 bit paths
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits