mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Added explicit path to the lib/ folder. * Added use_zlib() function to the cmake files. Changed the remaining cmake files to use POL_EXT_LIB_DIR. * Removed relative path to zlib. It seems we were always using our zlib header (even when linking to the system zlib on linux!).
34 lines
867 B
CMake
34 lines
867 B
CMake
message("* boost")
|
|
set (BOOST_SOURCE_DIR "${POL_EXT_LIB_DIR}/boost_1_67_0")
|
|
|
|
if(NOT EXISTS "${BOOST_SOURCE_DIR}/boost")
|
|
# build disabled no need currenty
|
|
ExternalProject_Add(boost
|
|
URL "${BOOST_SOURCE_DIR}/../boost_1_67_0.tar.bz2"
|
|
SOURCE_DIR "${BOOST_SOURCE_DIR}"
|
|
# CONFIGURE_COMMAND ./bootstrap.sh
|
|
# --prefix=build
|
|
INSTALL_COMMAND ""
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
# BUILD_COMMAND ./bjam
|
|
# toolset=gcc
|
|
# link=shared
|
|
# runtime-link=shared
|
|
# address-model=${ARCH_BITS}
|
|
# variant=release
|
|
# --abbreviate-paths
|
|
# --stagedir=lib
|
|
# --build-dir=build
|
|
# --with-regex
|
|
# stage
|
|
LOG_DOWNLOAD 1
|
|
BUILD_IN_SOURCE 1
|
|
)
|
|
set_target_properties (boost PROPERTIES FOLDER 3rdParty)
|
|
else()
|
|
message("Boost already extracted")
|
|
endif()
|
|
|
|
set (BOOST_LIBRARY_DIR "${BOOST_SOURCE_DIR}/lib/lib")
|
|
|