[7172b2]: cmake / CMakeExternalsMongoDB.txt  Maximize  Restore  History

Download this file

35 lines (27 with data), 1.3 kB

 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
set(BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/build")
IF(MINGW)
SET(USER_CONFIG "--host=x86_64-w64-mingw32")
ENDIF(MINGW)
#https://downloads.sourceforge.net/project/scons/scons/2.3.1/scons-2.3.1.tar.gz?r=&ts=1395063639&use_mirror=cznic
ExternalProject_Add(scons
URL http://downloads.sourceforge.net/project/scons/scons/2.3.1/scons-2.3.1.tar.gz
CONFIGURE_COMMAND cd <SOURCE_DIR> && python setup.py install --prefix=${BUILD_DIR}
BUILD_COMMAND true
INSTALL_COMMAND true
)
IF(APPLE)
#SET(PROTO_FLAGS env CFLAGS=-mmacosx-version-min=${MAC_OSX_MIN_VERSION} LDFLAGS=-mmacosx-version-min=${MAC_OSX_MIN_VERSION} CPPFLAGS=-mmacosx-version-min=${MAC_OSX_MIN_VERSION})
ENDIF(APPLE)
ExternalProject_Add(mongodbdep
DEPENDS scons
#URL http://fastdl.mongodb.org/src/mongodb-src-r2.6.0-rc1.tar.gz
#URL http://github.com/mongodb/mongo-cxx-driver/archive/legacy.zip
GIT_REPOSITORY https://github.com/mongodb/mongo-cxx-driver.git
CONFIGURE_COMMAND git checkout legacy
BUILD_COMMAND PATH=${BUILD_DIR}/bin:$ENV{PATH} && cd <SOURCE_DIR> && scons --prefix=${BUILD_DIR} --extrapath=${BUILD_DIR} install-mongoclient
#BUILD_COMMAND true
INSTALL_COMMAND true
#PATH=${BUILD_DIR}/bin:$ENV{PATH} && cd <SOURCE_DIR> && scons --prefix=${BUILD_DIR} install
BUILD_IN_SOURCE 1
)
SET(MONGODB_DIR ${BUILD_DIR})

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks