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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Julien Cabieces
otb
Commits
156ef832
Commit
156ef832
authored
9 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
ENH: check default INSTALL_PREFIX, remove ENABLE_QT4 option
parent
adb3486f
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/CMakeLists.txt
+22
-2
22 additions, 2 deletions
SuperBuild/CMakeLists.txt
with
22 additions
and
2 deletions
SuperBuild/CMakeLists.txt
+
22
−
2
View file @
156ef832
...
...
@@ -20,7 +20,6 @@ set (DOWNLOAD_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/Downloads"
mark_as_advanced
(
DOWNLOAD_LOCATION
)
# General options
option
(
ENABLE_QT4
" Use QT4 in the SuperBuild"
ON
)
option
(
ENABLE_OTB_LARGE_INPUTS
" Use the OTB-LargeInputs for testing"
OFF
)
# check if superbuild is in OTB source or in stand-alone mode
...
...
@@ -38,6 +37,27 @@ set(SB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
set
(
SB_BUILD_SHARED_LIBS ON
)
# Check if CMAKE_INSTALL_PREFIX is set by default
if
(
WIN32
)
if
(
CMAKE_INSTALL_PREFIX STREQUAL
"C:/Program Files (x86)/OTB-SuperBuild"
OR CMAKE_INSTALL_PREFIX STREQUAL
"C:/Program Files/OTB-SuperBuild"
)
message
(
WARNING
"The CMAKE_INSTALL_PREFIX variable seems to be set by default : "
"
${
CMAKE_INSTALL_PREFIX
}
. Be aware that this directory will be used"
" during the build (even without calling the install target). Please "
"make sure you want to use this directory as the SuperBuild output."
)
endif
()
elseif
(
UNIX
)
if
(
CMAKE_INSTALL_PREFIX STREQUAL
"/usr/local"
)
message
(
WARNING
"The CMAKE_INSTALL_PREFIX variable seems to be set by default : "
"
${
CMAKE_INSTALL_PREFIX
}
. Be aware that this directory will be used"
" during the build (even without calling the install target). Please "
"make sure you want to use this directory as the SuperBuild output."
)
endif
()
endif
()
if
(
WIN32
)
if
(
MSVC
)
set
(
SB_CMAKE_COMMAND
${
CMAKE_COMMAND
}
)
...
...
@@ -103,7 +123,7 @@ option(OTB_USE_MUPARSER "Enable module muparser in OTB" ON)
option
(
OTB_USE_MUPARSERX
"Enable module muparserX in OTB"
ON
)
option
(
OTB_USE_OPENCV
"Enable module OpenCV in OTB"
ON
)
option
(
OTB_USE_OPENJPEG
"Enable module openjpeg in OTB"
OFF
)
option
(
OTB_USE_QT4
"Enable module QT4 in OTB"
${
ENABLE_QT4
}
)
option
(
OTB_USE_QT4
"Enable module QT4 in OTB"
ON
)
option
(
OTB_USE_SIFTFAST
"Enable module Siftfast in OTB"
ON
)
# set OTB_DATA_ROOT to run test
...
...
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