summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Drahoš <drahosp@gmail.com>2013-06-14 10:42:29 +0200
committerPeter Drahoš <drahosp@gmail.com>2013-06-14 10:42:29 +0200
commita1d727dbf9bedd795825639c657260e3ee8f25d7 (patch)
tree8a1d0d392189d2f7d04e6d58aba2f9bf09321f90
parentfc076a71577b53f7f35c30efd66203a8446a1036 (diff)
downloadlua-a1d727dbf9bedd795825639c657260e3ee8f25d7.tar.gz
Minor configuration adjustments for seamless Solaris support
-rw-r--r--CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d96b4bd..aa0c893 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,15 +51,18 @@ if ( WIN32 AND NOT CYGWIN )
string ( REPLACE "/" ${LUA_DIRSEP} LUA_CPATH_DEFAULT "${LUA_CPATH_DEFAULT}" )
else ( )
# Posix systems (incl. Cygwin)
- option ( LUA_USE_POSIX "Use POSIX functionality." ON )
option ( LUA_USE_DLOPEN "Use dynamic linker to load modules." ON )
option ( LUA_USE_MKSTEMP "Use mkstep." ON )
option ( LUA_USE_ISATTY "Use tty." ON )
option ( LUA_USE_POPEN "Use popen." ON )
option ( LUA_USE_ULONGJMP "Use ulongjmp" ON )
- option ( LUA_USE_STRTODHEX "assume 'strtod' handles hexa formats" ON )
- option ( LUA_USE_AFORMAT "assume 'printf' handles 'aA' specifiers" ON )
- option ( LUA_USE_LONGLONG "assume support for long long" ON )
+ option ( LUA_USE_GMTIME_R "Use GTIME_R" ON )
+ # Apple and Linux specific
+ if ( LINUX OR APPLE )
+ option ( LUA_USE_STRTODHEX "Assume 'strtod' handles hexa formats" ON )
+ option ( LUA_USE_AFORMAT "Assume 'printf' handles 'aA' specifiers" ON )
+ option ( LUA_USE_LONGLONG "Assume support for long long" ON )
+ endif ( )
endif ( )
## SETUP