-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathplatform.cmake
More file actions
22 lines (19 loc) · 650 Bytes
/
platform.cmake
File metadata and controls
22 lines (19 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if(WIN32)
include(${CMAKE_CURRENT_LIST_DIR}/platform_win.cmake)
add_definitions(-DCHECKNEWVERSION)
elseif(APPLE)
include(${CMAKE_CURRENT_LIST_DIR}/platform_apple.cmake)
add_definitions(-DCHECKNEWVERSION)
endif()
if(NOT WIN32)
list(APPEND PLATFORM_LIBS pthread)
endif()
if(UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
list(APPEND PLATFORM_LIBS dl)
endif()
# add extra library path for MacOS and FreeBSD
set(EXTRAPATH APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if(EXTRAPATH)
list(PREPEND CMAKE_PREFIX_PATH /usr/local/opt/sqlite/lib)
list(PREPEND CMAKE_PREFIX_PATH /usr/local/opt/sqlitefts5/lib)
endif()