Changeset View
Changeset View
Standalone View
Standalone View
src/leveldb/CMakeLists.txt
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | else() | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
set(LEVELDB_OS LINUX) | set(LEVELDB_OS LINUX) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||||
set(LEVELDB_OS MACOSX) | set(LEVELDB_OS MACOSX) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "(Solaris|SunOS)") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "(Solaris|SunOS)") | ||||
set(LEVELDB_OS SOLARIS) | set(LEVELDB_OS SOLARIS) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") | ||||
set(LEVELDB_OS FREEBSD) | set(LEVELDB_OS FREEBSD) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "KFreeBSD") | |||||
set(LEVELDB_OS KFREEBSD) | |||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") | ||||
set(LEVELDB_OS NETBSD) | set(LEVELDB_OS NETBSD) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") | ||||
set(LEVELDB_OS OPENBSD) | set(LEVELDB_OS OPENBSD) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly") | ||||
set(LEVELDB_OS DRAGONFLYBSD) | set(LEVELDB_OS DRAGONFLYBSD) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android") | ||||
set(LEVELDB_OS ANDROID) | set(LEVELDB_OS ANDROID) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "HPUX") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "HPUX") | ||||
# No idea what's the proper system name is here. | # No idea what's the proper system name is here. | ||||
set(LEVELDB_OS HPUX) | set(LEVELDB_OS HPUX) | ||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "iOS") | elseif(${CMAKE_SYSTEM_NAME} MATCHES "iOS") | ||||
# No idea what's the proper system name is here. | # No idea what's the proper system name is here. | ||||
set(LEVELDB_OS IOS) | set(LEVELDB_OS IOS) | ||||
else() | else() | ||||
# Unknown plateform, assume linux. | message(FATAL_ERROR "Cannot build leveldb for ${CMAKE_SYSTEM_NAME}. Please file a bug report.") | ||||
set(LEVELDB_OS LINUX) | |||||
endif() | endif() | ||||
endif() | endif() | ||||
# Right now this is not used but the latest version of leveldb uses this | # Right now this is not used but the latest version of leveldb uses this | ||||
# so we might as well be ready for it. | # so we might as well be ready for it. | ||||
if (HAVE_CRC32C) | if (HAVE_CRC32C) | ||||
target_link_libraries(leveldb crc32c) | target_link_libraries(leveldb crc32c) | ||||
endif (HAVE_CRC32C) | endif (HAVE_CRC32C) | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |