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
Antoine Belvire
otb
Commits
163eb019
Commit
163eb019
authored
10 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Jira-753: support custom system location
parent
31e74b9f
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/External_libtiff.cmake
+6
-7
6 additions, 7 deletions
CMake/External_libtiff.cmake
CMake/External_zlib.cmake
+3
-2
3 additions, 2 deletions
CMake/External_zlib.cmake
with
9 additions
and
9 deletions
CMake/External_libtiff.cmake
+
6
−
7
View file @
163eb019
...
...
@@ -13,14 +13,14 @@ ADD_SYSTEM_PREFIX(PROJECT ${proj})
if
(
USE_SYSTEM_TIFF
)
message
(
STATUS
" Using libtiff system version"
)
else
()
set
(
${
proj
}
_DEPENDENCIES
)
set
(
TIFF_SB_BUILD_DIR
${
CMAKE_BINARY_DIR
}
/
${
proj
}
/build
)
set
(
TIFF_SB_SRC
${
CMAKE_BINARY_DIR
}
/
${
proj
}
/src/
${
proj
}
)
SETUP_SUPERBUILD
(
PROJECT
${
proj
}
)
if
(
USE_SYSTEM_ZLIB
)
set
(
TIFF_SB_ZLIB_CONFIG
)
if
(
NOT SYSTEM_ZLIB_PREFIX STREQUAL
""
)
list
(
APPEND TIFF_SB_CONFIG --with-zlib-include-dir=
${
SYSTEM_ZLIB_PREFIX
}
/include
)
endif
()
else
()
set
(
TIFF_SB_
ZLIB_
CONFIG
list
(
APPEND
TIFF_SB_CONFIG
--with-zlib-include-dir=
${
CMAKE_INSTALL_PREFIX
}
/include
)
list
(
APPEND
${
proj
}
_DEPENDENCIES ZLIB
)
...
...
@@ -32,7 +32,6 @@ else()
list
(
APPEND
${
proj
}
_DEPENDENCIES JPEG
)
endif
()
set
(
TIFF_SB_ZLIB_CONFIG
)
STRING
(
REGEX REPLACE
"/$"
""
CMAKE_WIN_INSTALL_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)
STRING
(
REGEX REPLACE
"/"
"
\\\\
"
CMAKE_WIN_INSTALL_PREFIX
${
CMAKE_WIN_INSTALL_PREFIX
}
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/patches/
${
proj
}
/nmake.opt
${
CMAKE_BINARY_DIR
}
/nmake_libtiff_extra.opt
)
...
...
@@ -79,7 +78,7 @@ else()
${
TIFF_SB_BUILD_DIR
}
/configure
--prefix=
${
CMAKE_INSTALL_PREFIX
}
--enable-static=no
${
TIFF_SB_
ZLIB_
CONFIG
}
${
TIFF_SB_CONFIG
}
BUILD_COMMAND $
(
MAKE
)
INSTALL_COMMAND $
(
MAKE
)
install
DEPENDS
${${
proj
}
_DEPENDENCIES
}
...
...
This diff is collapsed.
Click to expand it.
CMake/External_zlib.cmake
+
3
−
2
View file @
163eb019
...
...
@@ -4,8 +4,9 @@ set(proj ZLIB)
set
(
DEFAULT_USE_SYSTEM_ZLIB ON
)
option
(
USE_SYSTEM_ZLIB
" Use a system build of Zlib."
${
DEFAULT_USE_SYSTEM_ZLIB
}
)
mark_as_advanced
(
USE_SYSTEM_ZLIB
)
SETUP_SYSTEM_LIBRARY
(
PROJECT
${
proj
}
DOC
" Use a system build of Zlib."
)
ADD_SYSTEM_PREFIX
(
PROJECT
${
proj
}
CMAKE_ALIAS ZLIB_ROOT
)
if
(
USE_SYSTEM_ZLIB
)
message
(
STATUS
" Using Zlib system version"
)
...
...
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