|
|
|
@ -341,13 +341,6 @@ function(get_timestamp _var)
|
|
|
|
|
set(${_var} "${timestamp}" PARENT_SCOPE)
|
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
|
|
# Prevent boost from linking against libs when building
|
|
|
|
|
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY
|
|
|
|
|
-DBOOST_SYSTEM_NO_LIB
|
|
|
|
|
-DBOOST_DATE_TIME_NO_LIB
|
|
|
|
|
-DBOOST_REGEX_NO_LIB
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# generate git/build information
|
|
|
|
|
include(GetGitRevisionDescription)
|
|
|
|
|
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
|
|
|
@ -355,17 +348,23 @@ git_describe(GIT_DESC --always --long --dirty)
|
|
|
|
|
git_branch_name(GIT_BRANCH)
|
|
|
|
|
get_timestamp(BUILD_DATE)
|
|
|
|
|
|
|
|
|
|
if (NOT USE_SYSTEM_BOOST)
|
|
|
|
|
add_definitions( -DBOOST_ALL_NO_LIB )
|
|
|
|
|
# Boost
|
|
|
|
|
# Prevent boost from linking against libs when building
|
|
|
|
|
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY
|
|
|
|
|
-DBOOST_SYSTEM_NO_LIB
|
|
|
|
|
-DBOOST_DATE_TIME_NO_LIB
|
|
|
|
|
-DBOOST_REGEX_NO_LIB
|
|
|
|
|
)
|
|
|
|
|
if (USE_SYSTEM_BOOST)
|
|
|
|
|
find_package(Boost 1.70.0 COMPONENTS container locale serialization iostreams REQUIRED)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
add_subdirectory(externals)
|
|
|
|
|
|
|
|
|
|
# Boost
|
|
|
|
|
if (USE_SYSTEM_BOOST)
|
|
|
|
|
find_package(Boost 1.70.0 COMPONENTS serialization iostreams REQUIRED)
|
|
|
|
|
else()
|
|
|
|
|
# Boost (bundled)
|
|
|
|
|
if (NOT USE_SYSTEM_BOOST)
|
|
|
|
|
add_definitions( -DBOOST_ALL_NO_LIB )
|
|
|
|
|
add_library(Boost::boost ALIAS boost)
|
|
|
|
|
add_library(Boost::serialization ALIAS boost_serialization)
|
|
|
|
|
add_library(Boost::iostreams ALIAS boost_iostreams)
|
|
|
|
|