Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
0ce4e42c
Commit
0ce4e42c
authored
8 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
JIRA-1212: update boost build for shark
parent
e1d56839
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SuperBuild/CMake/External_boost.cmake
+56
-15
56 additions, 15 deletions
SuperBuild/CMake/External_boost.cmake
with
56 additions
and
15 deletions
SuperBuild/CMake/External_boost.cmake
+
56
−
15
View file @
0ce4e42c
...
...
@@ -2,30 +2,71 @@ INCLUDE_ONCE_MACRO(BOOST)
SETUP_SUPERBUILD
(
BOOST
)
#all we loose is one single test from not building boost unit-testing-framework.
#That is single test code. I don't see why we can't use something in-house
#change test code to not use boost unit-testing-framework and all is well.
set
(
_SB_Boost_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
set
(
_SB_Boost_LIBRARY_DIR
${
SB_INSTALL_PREFIX
}
/lib
)
set
(
BOOST_SB_CONFIG
)
if
(
MSVC
)
set
(
BOOST_URL
"http://download.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2"
)
set
(
BOOST_URL_MD5
"65a840e1a0b13a558ff19eeb2c4f0cbe"
)
if
(
OTB_MSVC_COMPILER_ARCH_IS_X64
)
set
(
BOOST_SB_CONFIG architecture=x86 address-model=64
)
else
()
set
(
BOOST_SB_CONFIG architecture=x86
)
endif
()
endif
()
set
(
BOOST_SB_CONFIG
${
BOOST_SB_CONFIG
}
variant=release
link=shared
threading=single
runtime-link=shared
--prefix=
${
SB_INSTALL_PREFIX
}
--includedir=
${
_SB_Boost_INCLUDE_DIR
}
--libdir=
${
_SB_Boost_LIBRARY_DIR
}
--layout=system
--with-system
--with-serialization
--with-filesystem
--with-test
-d0
)
if
(
UNIX
)
set
(
BOOST_BOOTSTRAP_FILE
"./bootstrap.sh"
)
set
(
BOOST_B2_EXE
"./b2"
)
else
()
set
(
BOOST_
URL
"http://download.sourceforge.net/project/boost/boost/1.50.0/boost_1_50_0.tar.bz2
"
)
set
(
BOOST_
URL_MD5
"52dd00be775e689f55a987baebccc462
"
)
set
(
BOOST_
BOOTSTRAP_FILE
"bootstrap.bat
"
)
set
(
BOOST_
B2_EXE
"b2.exe
"
)
endif
()
set
(
BOOST_CONFIGURE_COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
BOOST_SB_SRC
}
${
BOOST_BOOTSTRAP_FILE
}
--prefix=
${
SB_INSTALL_PREFIX
}
)
set
(
BOOST_BUILD_COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
BOOST_SB_SRC
}
${
BOOST_B2_EXE
}
${
BOOST_SB_CONFIG
}
)
set
(
BOOST_INSTALL_COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
BOOST_SB_SRC
}
${
BOOST_B2_EXE
}
${
BOOST_SB_CONFIG
}
install
)
ExternalProject_Add
(
BOOST
PREFIX BOOST
URL
"
${
BOOST_URL
}
"
URL_MD5
${
BOOST_URL_MD5
}
URL
"
http://download.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2
"
URL_MD5
65a840e1a0b13a558ff19eeb2c4f0cbe
BINARY_DIR
${
BOOST_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
CMAKE_CACHE_ARGS
${
SB_CMAKE_CACHE_ARGS
}
PATCH_COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_SOURCE_DIR
}
/patches/BOOST/CMakeLists.txt
${
BOOST_SB_SRC
}
CONFIGURE_COMMAND
${
BOOST_CONFIGURE_COMMAND
}
BUILD_COMMAND
${
BOOST_BUILD_COMMAND
}
INSTALL_COMMAND
${
BOOST_INSTALL_COMMAND
}
)
set
(
_SB_Boost_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
set
(
_SB_Boost_LIBRARY_DIR
${
SB_INSTALL_PREFIX
}
/lib
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment