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
Main Repositories
otb
Commits
6b7d8d88
Commit
6b7d8d88
authored
8 years ago
by
Sébastien Dinot
Browse files
Options
Downloads
Patches
Plain Diff
LICENSE: Reworked embedded copyright notices
parent
b0a6ed3f
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
CMake/FindGLEW.cmake
+29
-3
29 additions, 3 deletions
CMake/FindGLEW.cmake
CMake/FindOpenThreads.cmake
+2
-9
2 additions, 9 deletions
CMake/FindOpenThreads.cmake
with
31 additions
and
12 deletions
CMake/FindGLEW.cmake
+
29
−
3
View file @
6b7d8d88
# Courtesy of: https://raw.github.com/progschj/OpenGL-Examples/
# File from https://github.com/progschj/OpenGL-Examples/
#
# ----------------------------------------------------------------------------
# Copyright (c) 2012-2013 Jakob Progsch
# Released under ZLib license:
#
# This software is provided 'as-is', without any express or implied warranty.
# In no event will the authors be held liable for any damages arising from the
# use of this software.
#
# Permission is granted to anyone to use this software for any purpose,
# including commercial applications, and to alter it and redistribute it
# freely, subject to the following restrictions:
#
# 1. The origin of this software must not be misrepresented; you must not
# claim that you wrote the original software. If you use this software in
# a product, an acknowledgment in the product documentation would be
# appreciated but is not required.
#
# 2. Altered source versions must be plainly marked as such, and must not be
# misrepresented as being the original software.
#
# 3. This notice may not be removed or altered from any source distribution.
# ----------------------------------------------------------------------------
#
# NOTE: This file was removed from OpenGL-Examples project on 2013-11-01:
# https://github.com/progschj/OpenGL-Examples/commit/a100ce1ec6f5f6acf6ba3a3279cd3b3b91775b20
#
# Try to find GLEW library and include path.
# Once done this will define
...
...
@@ -6,7 +32,7 @@
# GLEW_FOUND
# GLEW_INCLUDE_PATH
# GLEW_LIBRARY
#
#
IF
(
WIN32
)
FIND_PATH
(
GLEW_INCLUDE_DIR GL/glew.h
...
...
@@ -52,6 +78,6 @@ IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
ENDIF
()
INCLUDE
(
${
CMAKE_ROOT
}
/Modules/FindPackageHandleStandardArgs.cmake
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
GLEW
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
GLEW
REQUIRED_VARS GLEW_LIBRARY GLEW_INCLUDE_DIR
VERSION_VAR GLEW_VERSION_STRING
)
This diff is collapsed.
Click to expand it.
CMake/FindOpenThreads.cmake
+
2
−
9
View file @
6b7d8d88
...
...
@@ -25,6 +25,7 @@
#=============================================================================
# Copyright 2007-2009 Kitware, Inc.
# Copyright 2009-2017 Centre National d'Etudes Spatiales (CNES)
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
...
...
@@ -33,14 +34,6 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
# See OTBCopyright.txt for details.
#
#
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the above copyright notices for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
...
...
@@ -90,7 +83,7 @@ if(EXISTS "${OPENTHREADS_INCLUDE_DIR}/OpenThreads/Version")
string
(
REGEX REPLACE
".*# *define +OPENTHREADS_MAJOR_VERSION +([0-9]+).*"
"
\\
1"
OPENTHREADS_VERSION_MAJOR
"
${
_openthreads_version_CONTENTS
}
"
)
string
(
REGEX REPLACE
".*# *define +OPENTHREADS_MINOR_VERSION +([0-9]+).*"
"
\\
1"
OPENTHREADS_VERSION_MINOR
"
${
_openthreads_version_CONTENTS
}
"
)
string
(
REGEX REPLACE
".*# *define +OPENTHREADS_PATCH_VERSION +([0-9]+).*"
"
\\
1"
OPENTHREADS_VERSION_PATCH
"
${
_openthreads_version_CONTENTS
}
"
)
set
(
OPENTHREADS_VERSION
"
${
OPENTHREADS_VERSION_MAJOR
}
.
${
OPENTHREADS_VERSION_MINOR
}
.
${
OPENTHREADS_VERSION_PATCH
}
"
)
math
(
EXPR OPENTHREADS_VERSION_NUMBER
"((
${
OPENTHREADS_VERSION_MAJOR
}
)*100+
${
OPENTHREADS_VERSION_MINOR
}
)*100+
${
OPENTHREADS_VERSION_PATCH
}
"
)
...
...
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