Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
207
Issues
207
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
3691aaac
Commit
3691aaac
authored
Sep 07, 2018
by
Manuel Grizonnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Add option to allow to always trigger otb build step from superbuild tree
parent
3e0c0de1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
SuperBuild/CMake/External_otb.cmake
SuperBuild/CMake/External_otb.cmake
+8
-2
SuperBuild/CMakeLists.txt
SuperBuild/CMakeLists.txt
+2
-1
No files found.
SuperBuild/CMake/External_otb.cmake
View file @
3691aaac
...
...
@@ -26,7 +26,12 @@ set(OTB_SB_SRC ${CMAKE_SOURCE_DIR}/..)
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM
(
OTB GDAL OSSIM ITK TINYXML BOOST
)
##get_property(OTB_DEPENDENCIES GLOBAL PROPERTY GLOBAL_OTB_DEPENDENCIES)
# Check BUILD_ALWAYS option
if
(
BUILD_ALWAYS
)
set
(
OTB_BUILD_ALWAYS_OPTION 1
)
else
()
set
(
OTB_BUILD_ALWAYS_OPTION 0
)
endif
()
if
(
OTB_USE_CURL
)
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM
(
OTB CURL
)
...
...
@@ -181,6 +186,7 @@ ExternalProject_Add(OTB
BINARY_DIR
${
OTB_SB_BUILD_DIR
}
INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
BUILD_ALWAYS
${
OTB_BUILD_ALWAYS_OPTION
}
CMAKE_CACHE_ARGS
${
SB_CMAKE_CACHE_ARGS
}
${
OTB_MODULES_CONFIG
}
...
...
@@ -224,7 +230,7 @@ ExternalProject_Add_Step(
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
OTB_SB_SRC
}
/NOTICE
${
CMAKE_INSTALL_PREFIX
}
/share/copyright/NOTICE
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_SOURCE_DIR
}
/Copyright
${
CMAKE_INSTALL_PREFIX
}
/share/copyright
...
...
SuperBuild/CMakeLists.txt
View file @
3691aaac
...
...
@@ -52,6 +52,7 @@ endif()
option
(
BUILD_SHARED_LIBS
"Build OTB with shared libraries."
ON
)
option
(
BUILD_STATIC_LIBS
"Build with static libraries."
OFF
)
option
(
BUILD_ALWAYS
"Always build or install OTB."
OFF
)
option
(
WITH_REMOTE_MODULES
"Build with specific list of remote modules."
OFF
)
option
(
OTB_USE_OPENMP
"use openmp"
OFF
)
set
(
OTB_ADDITIONAL_CACHE
""
CACHE STRING
"Additional cmake option for OTB -DVAR:TYPE=VALUE ..."
)
...
...
@@ -317,7 +318,7 @@ option(OTB_USE_OPENGL "Enable module OpenGL in OTB" ON)
option
(
OTB_USE_GLEW
"Enable module GLEW in OTB"
ON
)
#Cannot activate GLUT on OSX. See Mantis issue #1194")
# do not activate GLFW by default on osx. see failing test
# do not activate GLFW by default on osx. see failing test
# https://dash.orfeo-toolbox.org/testDetails.php?test=59844554&build=287120
if
(
APPLE
)
option
(
OTB_USE_GLUT
"Enable module GLUT in OTB"
OFF
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment