diff options
author | Peter Drahoš <drahosp@gmail.com> | 2013-06-14 10:42:29 +0200 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2013-06-14 10:42:29 +0200 |
commit | a1d727dbf9bedd795825639c657260e3ee8f25d7 (patch) | |
tree | 8a1d0d392189d2f7d04e6d58aba2f9bf09321f90 | |
parent | fc076a71577b53f7f35c30efd66203a8446a1036 (diff) | |
download | lua-a1d727dbf9bedd795825639c657260e3ee8f25d7.tar.gz |
Minor configuration adjustments for seamless Solaris support
-rw-r--r-- | CMakeLists.txt | 11 |
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 |