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
4d22cc0d
Commit
4d22cc0d
authored
6 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 1661-monteverdi-build-error-superbuild
parents
497155ef
46f657df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
Modules/ThirdParty/OpenGL/otb-module-init.cmake
+10
-5
10 additions, 5 deletions
Modules/ThirdParty/OpenGL/otb-module-init.cmake
with
12 additions
and
6 deletions
CMakeLists.txt
+
2
−
1
View file @
4d22cc0d
...
...
@@ -23,7 +23,8 @@ cmake_minimum_required(VERSION 3.1.0)
foreach
(
p
CMP0025
# CMake 3.0
CMP0042
# CMake 3.0
CMP0058
CMP0058
# CMake 3.3
CMP0072
# CMake 3.11
)
if
(
POLICY
${
p
}
)
cmake_policy
(
SET
${
p
}
NEW
)
...
...
This diff is collapsed.
Click to expand it.
Modules/ThirdParty/OpenGL/otb-module-init.cmake
+
10
−
5
View file @
4d22cc0d
...
...
@@ -18,7 +18,7 @@
# limitations under the License.
#
#detection of OpenGL is apply is bit tricy as we deactivate
#detection of OpenGL is apply is
a
bit tric
k
y as we deactivate
#framework on OSX globally. see mantis #1193
if
(
APPLE
)
set
(
OPENGL_FOUND FALSE
)
...
...
@@ -38,7 +38,7 @@ if(APPLE)
PATHS
"/System/Library/Frameworks/"
DOC
"OpenGL lib for OSX"
)
find_library
(
OPENGL_glu_LIBRARY AGL
PATHS
"/System/Library/Frameworks/"
...
...
@@ -62,6 +62,7 @@ if(APPLE)
)
else
(
APPLE
)
find_package
(
OpenGL REQUIRED
)
mark_as_advanced
(
OPENGL_INCLUDE_DIR
)
mark_as_advanced
(
OPENGL_LIBRARIES
)
endif
(
APPLE
)
...
...
@@ -73,11 +74,15 @@ if(NOT OPENGL_INCLUDE_DIR)
endif
()
endif
()
if
(
NOT OPENGL_gl_LIBRARY
)
message
(
FATAL_ERROR
"Could not find OpenGL (missing: OPENGL_gl_LIBRARY"
)
# For CMake > 3.11 the default GLVND instead of legacy GL library
# Test both of them to
# FIXME: As stated in CMake documentation we should use the OpenGL::* import targets instead available
# It should be done when OTB will increase CMake minimum version to 3.X
# See: https://cmake.org/cmake/help/v3.11/module/FindOpenGL.html
if
(
NOT OPENGL_gl_LIBRARY AND NOT OPENGL_opengl_LIBRARY
)
message
(
FATAL_ERROR
"Could not find OpenGL (missing: OPENGL_gl_LIBRARY or OPENGL_opengl_LIBRARY"
)
endif
()
if
(
NOT OPENGL_glu_LIBRARY
)
message
(
FATAL_ERROR
"Could not find OpenGL (missing: OPENGL_glu_LIBRARY"
)
endif
()
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