forked from janelia-flyem/buildem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
openldap.cmake
42 lines (34 loc) · 1.14 KB
/
openldap.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Install openldap from source
#
if (NOT openldap_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (openssl)
external_source (openldap
2.4.33
openldap-2.4.33.tgz
5adae44897647c15ce5abbff313bc85a
ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release)
message ("Installing ${openldap_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${openldap_NAME}
PREFIX ${BUILDEM_DIR}
URL ${openldap_URL}
URL_MD5 ${openldap_MD5}
UPDATE_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ./configure
--prefix=${BUILDEM_DIR}
--enable-shared
--disable-backends
--disable-slapd
LDFLAGS=${BUILDEM_LDFLAGS}
CPPFLAGS=-I${BUILDEM_DIR}/include
BUILD_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) depend
BUILD_IN_SOURCE 1
TEST_COMMAND ${BUILDEM_ENV_STRING} $(MAKE)
INSTALL_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) install
)
set_target_properties(${openldap_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT openldap_NAME)